Skip to content

Commit cb2268c

Browse files
authored
.Net: Removing SKEXP0070 experimental from non-GA AI Connectors (#12677)
### Motivation and Context This is a path of changes following the removal of the `Experimental` attribute from non-GA packages API's. Since all the existing AI Connectors that are still in `preview`, `alpha` and `beta` can still change or discontinued before GA, the usage of experiments within pre-production is redundant and not necessary.
1 parent c1ce5a6 commit cb2268c

File tree

45 files changed

+33
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+33
-88
lines changed

dotnet/docs/EXPERIMENTS.md

Lines changed: 0 additions & 7 deletions

dotnet/samples/Concepts/Concepts.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<IsPackable>false</IsPackable>
99
<IsTestProject>true</IsTestProject>
1010
<!-- Suppress: "Declare types in namespaces", "Require ConfigureAwait", "Experimental" -->
11-
<NoWarn>$(NoWarn);CS8618,IDE0009,IDE1006,CA1051,CA1050,CA1707,CA1054,CA2007,VSTHRD111,CS1591,RCS1110,RCS1243,CA5394,SKEXP0001,SKEXP0010,SKEXP0020,SKEXP0040,SKEXP0050,SKEXP0060,SKEXP0070,SKEXP0101,SKEXP0110,OPENAI001,CA1724,IDE1006,IDE0009,MEVD9000</NoWarn>
11+
<NoWarn>$(NoWarn);CS8618,IDE0009,IDE1006,CA1051,CA1050,CA1707,CA1054,CA2007,VSTHRD111,CS1591,RCS1110,RCS1243,CA5394,SKEXP0001,SKEXP0010,SKEXP0020,SKEXP0040,SKEXP0050,SKEXP0060,SKEXP0101,SKEXP0110,OPENAI001,CA1724,IDE1006,IDE0009,MEVD9000</NoWarn>
1212
<OutputType>Library</OutputType>
1313
<UserSecretsId>5ee045b0-aea3-4f08-8d31-32d1a6f8fed0</UserSecretsId>
1414
</PropertyGroup>

dotnet/samples/Demos/AIModelRouter/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#pragma warning disable SKEXP0001
99
#pragma warning disable SKEXP0010
10-
#pragma warning disable SKEXP0070
1110

1211
namespace AIModelRouter;
1312

dotnet/samples/Demos/AmazonBedrockModels/AmazonBedrockAIModels.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<UserSecretsId>5ee045b0-aea3-4f08-8d31-32d1a6f8fed0</UserSecretsId>
99
</PropertyGroup>
1010
<PropertyGroup>
11-
<NoWarn>$(NoWarn);SKEXP0001;SKEXP0070</NoWarn>
11+
<NoWarn>$(NoWarn);SKEXP0001</NoWarn>
1212
</PropertyGroup>
1313

1414
<ItemGroup>

dotnet/samples/Demos/AotCompatibility/OnnxChatCompletionSamples.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3-
#pragma warning disable SKEXP0070
4-
53
using Microsoft.Extensions.Configuration;
64
using Microsoft.SemanticKernel;
75
using Microsoft.SemanticKernel.ChatCompletion;

dotnet/samples/Demos/CopilotAgentPlugins/CopilotAgentPluginsDemoSample/DemoCommand.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ private static (Kernel, PromptExecutionSettings) InitializeKernelForOllama(IConf
238238
loggingBuilder.AddProvider(new SemanticKernelLoggerProvider());
239239
});
240240
}
241-
#pragma warning disable SKEXP0070 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
242241
#pragma warning disable SKEXP0001
243242
return (builder.AddOllamaChatCompletion(
244243
chatModelId,
@@ -253,7 +252,6 @@ private static (Kernel, PromptExecutionSettings) InitializeKernelForOllama(IConf
253252
)
254253
});
255254
#pragma warning restore SKEXP0001
256-
#pragma warning restore SKEXP0070 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
257255
}
258256

259257
private static (Kernel, PromptExecutionSettings) InitializeAzureOpenAiKernel(IConfiguration configuration, bool enableLogging)

dotnet/samples/Demos/HuggingFaceImageToText/FormMain.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace HuggingFaceImageTextDemo;
88

99
#pragma warning disable SKEXP0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
10-
#pragma warning disable SKEXP0070 // Type is for evaluation purposes only and is subject to change or removal in future updates.
1110

1211
/// <summary>
1312
/// Main form of the application.

dotnet/samples/Demos/OllamaFunctionCalling/OllamaFunctionCalling.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net8.0</TargetFramework>
6-
<NoWarn>$(NoWarn);CA2007,CA2208,CS1591,CA1024,IDE0009,IDE0055,IDE0073,IDE0211,VSTHRD111,SKEXP0001,SKEXP0070</NoWarn>
6+
<NoWarn>$(NoWarn);CA2007,CA2208,CS1591,CA1024,IDE0009,IDE0055,IDE0073,IDE0211,VSTHRD111,SKEXP0001</NoWarn>
77
</PropertyGroup>
88

99
<ItemGroup>

dotnet/samples/Demos/OllamaFunctionCalling/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#pragma warning disable SKEXP0070 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
2-
3-
using System;
1+
using System;
42
using Microsoft.SemanticKernel;
53
using Microsoft.SemanticKernel.ChatCompletion;
64
using Microsoft.SemanticKernel.Connectors.Ollama;

dotnet/samples/Demos/OnnxSimpleRAG/OnnxSimpleRAG.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net8.0</TargetFramework>
6-
<NoWarn>$(NoWarn);CA2007;CS0612;VSTHRD111;SKEXP0070;SKEXP0050;SKEXP0001</NoWarn>
6+
<NoWarn>$(NoWarn);CA2007;CS0612;VSTHRD111;SKEXP0050;SKEXP0001</NoWarn>
77
<UserSecretsId>5ee045b0-aea3-4f08-8d31-32d1a6f8fed0</UserSecretsId>
88
</PropertyGroup>
99

0 commit comments

Comments
 (0)