diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props
index 0982f70fdace..878b812b2e86 100644
--- a/dotnet/Directory.Packages.props
+++ b/dotnet/Directory.Packages.props
@@ -47,8 +47,8 @@
-
-
+
+
@@ -151,7 +151,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
@@ -166,17 +166,17 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/azure-function/sk-chatgpt-azure-function.csproj b/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/azure-function/sk-chatgpt-azure-function.csproj
index d6958682de9e..fd7c7d7f5dc7 100644
--- a/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/azure-function/sk-chatgpt-azure-function.csproj
+++ b/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/azure-function/sk-chatgpt-azure-function.csproj
@@ -14,6 +14,7 @@
enable
enable
false
+ CS9057
diff --git a/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/kernel-functions-generator/KernelFunctionGenerator.cs b/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/kernel-functions-generator/KernelFunctionGenerator.cs
index 9ae83cf56377..2cafcb2e4913 100644
--- a/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/kernel-functions-generator/KernelFunctionGenerator.cs
+++ b/dotnet/samples/Demos/CreateChatGptPlugin/MathPlugin/kernel-functions-generator/KernelFunctionGenerator.cs
@@ -8,6 +8,8 @@
namespace Plugins.AzureFunctions.Generator;
+#pragma warning disable RS1042
+
///
/// Generates kernel functions
///