Skip to content

Commit 5c92ffb

Browse files
committed
Fix dotnet format: using directive ordering and unused usings
Applied dotnet format via mcr.microsoft.com/dotnet/sdk:10.0 Docker image (matching CI pipeline). Fixes using statement ordering (System.Threading.Tasks) and removes unnecessary using directives (Azure.AI.OpenAI in Foundry samples).
1 parent 252f692 commit 5c92ffb

File tree

20 files changed

+10
-30
lines changed

20 files changed

+10
-30
lines changed

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step01_Basics/Program.cs

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

33
using Azure.AI.Agents.Persistent;
4-
using Azure.AI.OpenAI;
54
using Azure.AI.Projects;
65
using Azure.Identity;
76
using Microsoft.Agents.AI;

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step02_ToolCall/Program.cs

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

33
using System.ComponentModel;
4-
using Azure.AI.OpenAI;
5-
using Azure.AI.Projects;
64
using Azure.AI.Agents.Persistent;
5+
using Azure.AI.Projects;
76
using Azure.Identity;
87
using Microsoft.Agents.AI;
98
using Microsoft.Extensions.AI;

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step03_DependencyInjection/Program.cs

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

3-
using Azure.AI.OpenAI;
4-
using Azure.AI.Projects;
53
using Azure.AI.Agents.Persistent;
4+
using Azure.AI.Projects;
65
using Azure.Identity;
76
using Microsoft.Agents.AI;
87
using Microsoft.Extensions.AI;

dotnet/samples/AgentFrameworkMigration/AzureAIFoundry/Step04_CodeInterpreter/Program.cs

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

33
using System.Text;
4-
using Azure.AI.OpenAI;
5-
using Azure.AI.Projects;
64
using Azure.AI.Agents.Persistent;
5+
using Azure.AI.Projects;
76
using Azure.Identity;
87
using Microsoft.Agents.AI;
98
using Microsoft.Extensions.AI;

dotnet/samples/AgentFrameworkMigration/AzureOpenAI/Step01_Basics/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Microsoft.SemanticKernel;
77
using Microsoft.SemanticKernel.Agents;
88
using Microsoft.SemanticKernel.Connectors.OpenAI;
9-
using OpenAI;
109
using OpenAI.Chat;
1110

1211
var endpoint = Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT") ?? throw new InvalidOperationException("AZURE_OPENAI_ENDPOINT is not set.");

dotnet/samples/AgentFrameworkMigration/AzureOpenAI/Step02_ToolCall/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Microsoft.Extensions.AI;
77
using Microsoft.SemanticKernel;
88
using Microsoft.SemanticKernel.Agents;
9-
using OpenAI;
109
using OpenAI.Chat;
1110

1211
var endpoint = Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT") ?? throw new InvalidOperationException("AZURE_OPENAI_ENDPOINT is not set.");

dotnet/samples/AgentFrameworkMigration/AzureOpenAI/Step03_DependencyInjection/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Microsoft.Extensions.DependencyInjection;
88
using Microsoft.SemanticKernel;
99
using Microsoft.SemanticKernel.Agents;
10-
using OpenAI;
1110
using OpenAI.Chat;
1211

1312
var endpoint = Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT") ?? throw new InvalidOperationException("AZURE_OPENAI_ENDPOINT is not set.");

dotnet/samples/AgentFrameworkMigration/AzureOpenAI/Step04_ToolCall_WithOpenAPI/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Microsoft.SemanticKernel;
1010
using Microsoft.SemanticKernel.Agents;
1111
using Microsoft.SemanticKernel.Plugins.OpenApi;
12-
using OpenAI;
1312
using OpenAI.Chat;
1413

1514
var endpoint = Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT") ?? throw new InvalidOperationException("AZURE_OPENAI_ENDPOINT is not set.");

dotnet/samples/AgentFrameworkMigration/AzureOpenAIResponses/Step01_Basics/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Microsoft.Agents.AI;
66
using Microsoft.Extensions.AI;
77
using Microsoft.SemanticKernel.Agents.OpenAI;
8-
using OpenAI;
98
using OpenAI.Responses;
109

1110
#pragma warning disable OPENAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.

dotnet/samples/AgentFrameworkMigration/AzureOpenAIResponses/Step02_ReasoningModel/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Microsoft.SemanticKernel;
88
using Microsoft.SemanticKernel.Agents.OpenAI;
99
using Microsoft.SemanticKernel.ChatCompletion;
10-
using OpenAI;
1110
using OpenAI.Responses;
1211

1312
#pragma warning disable OPENAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.

0 commit comments

Comments
 (0)