A programming framework for agentic AI
[.Net] fix code ql for dotnet build && update trigger for dotnet workflow (#2529)
Xiaoyun Zhang5e29ac84dc32
diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.ymlindex e337f7143..332e656c9 100644--- a/.github/workflows/dotnet-build.yml+++ b/.github/workflows/dotnet-build.yml@@ -6,11 +6,11 @@ name: dotnet-cion:workflow_dispatch:pull_request:- branches: [ "dotnet" ]+ branches: [ "main" ]paths:- 'dotnet/**'push:- branches: [ "dotnet" ]+ branches: [ "main" ]concurrency:group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.ymlindex 84b1f43b7..b512b4c16 100644--- a/.github/workflows/dotnet-release.yml+++ b/.github/workflows/dotnet-release.yml@@ -8,7 +8,6 @@ on:push:branches:- dotnet/release/**- - dotnet/releaseconcurrency:group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}diff --git a/dotnet/Directory.Build.props b/dotnet/Directory.Build.propsindex 03a11d92c..5641c6cac 100644--- a/dotnet/Directory.Build.props+++ b/dotnet/Directory.Build.props@@ -18,6 +18,6 @@</PropertyGroup><PropertyGroup>- <RepoRoot>$(MSBuildThisFileDirectory)../</RepoRoot>+ <RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot></PropertyGroup></Project>\ No newline at end of filediff --git a/dotnet/global.json b/dotnet/global.jsonindex a93054a45..a604954f9 100644--- a/dotnet/global.json+++ b/dotnet/global.json@@ -1,6 +1,6 @@{"sdk": {- "version": "8.0.101",+ "version": "8.0.104","rollForward": "latestMinor"}}\ No newline at end of filediff --git a/dotnet/nuget/nuget-package.props b/dotnet/nuget/nuget-package.propsindex 237fa96bc..c6ddf3891 100644--- a/dotnet/nuget/nuget-package.props+++ b/dotnet/nuget/nuget-package.props@@ -44,8 +44,8 @@<ItemGroup><!-- Include icon.png and NUGET.md in the project. -->- <None Include="$(RepoRoot)/dotnet/nuget/icon.png" Link="icon.png" Pack="true" PackagePath="." />- <None Include="$(RepoRoot)/dotnet/nuget/NUGET.md" Link="NUGET.md" Pack="true" PackagePath="." />+ <None Include="$(RepoRoot)/nuget/icon.png" Link="icon.png" Pack="true" PackagePath="." />+ <None Include="$(RepoRoot)/nuget/NUGET.md" Link="NUGET.md" Pack="true" PackagePath="." /></ItemGroup><PropertyGroup Condition=" '$(Configuration)' == 'Release' ">diff --git a/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs b/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.csindex c5e6773d0..b622a3e64 100644--- a/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs+++ b/dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs@@ -1,11 +1,11 @@// Copyright (c) Microsoft Corporation. All rights reserved.-// Example11_TwoAgent_Fill_Application.cs+// Example12_TwoAgent_Fill_Application.csusing System.Text;-using AutoGen.OpenAI;using AutoGen.Core;-using Azure.AI.OpenAI;+using AutoGen.OpenAI;using AutoGen.OpenAI.Extension;+using Azure.AI.OpenAI;namespace AutoGen.BasicSample;diff --git a/dotnet/src/AutoGen.Core/AutoGen.Core.csproj b/dotnet/src/AutoGen.Core/AutoGen.Core.csprojindex 018cd23a4..409b6bc1a 100644--- a/dotnet/src/AutoGen.Core/AutoGen.Core.csproj+++ b/dotnet/src/AutoGen.Core/AutoGen.Core.csproj@@ -4,7 +4,7 @@<RootNamespace>AutoGen.Core</RootNamespace></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup><!-- NuGet Package Settings -->diff --git a/dotnet/src/AutoGen.Core/GroupChat/Graph.cs b/dotnet/src/AutoGen.Core/GroupChat/Graph.csindex 483ce63be..78d925086 100644--- a/dotnet/src/AutoGen.Core/GroupChat/Graph.cs+++ b/dotnet/src/AutoGen.Core/GroupChat/Graph.cs@@ -1,5 +1,5 @@// Copyright (c) Microsoft Corporation. All rights reserved.-// Workflow.cs+// Graph.csusing System;using System.Collections.Generic;diff --git a/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj b/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csprojindex e17356994..57fcb1fce 100644--- a/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj+++ b/dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj@@ -8,7 +8,7 @@<TreatWarningsAsErrors>true</TreatWarningsAsErrors></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup><!-- NuGet Package Settings -->diff --git a/dotnet/src/AutoGen.LMStudio/AutoGen.LMStudio.csproj b/dotnet/src/AutoGen.LMStudio/AutoGen.LMStudio.csprojindex b738fe02b..f45a2f7eb 100644--- a/dotnet/src/AutoGen.LMStudio/AutoGen.LMStudio.csproj+++ b/dotnet/src/AutoGen.LMStudio/AutoGen.LMStudio.csproj@@ -5,7 +5,7 @@<RootNamespace>AutoGen.LMStudio</RootNamespace></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup><!-- NuGet Package Settings -->diff --git a/dotnet/src/AutoGen.Mistral/AutoGen.Mistral.csproj b/dotnet/src/AutoGen.Mistral/AutoGen.Mistral.csprojindex f7de19ca0..f1bb8e0af 100644--- a/dotnet/src/AutoGen.Mistral/AutoGen.Mistral.csproj+++ b/dotnet/src/AutoGen.Mistral/AutoGen.Mistral.csproj@@ -5,7 +5,7 @@<RootNamespace>AutoGen.Mistral</RootNamespace></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup><!-- NuGet Package Settings -->diff --git a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.csindex 58dcf5297..ff241f8d3 100644--- a/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs+++ b/dotnet/src/AutoGen.Mistral/DTOs/ChatCompletionResponse.cs@@ -1,4 +1,7 @@-using System.Collections.Generic;+// Copyright (c) Microsoft Corporation. All rights reserved.+// ChatCompletionResponse.cs++using System.Collections.Generic;using System.Text.Json.Serialization;namespace AutoGen.Mistral;diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Error.cs b/dotnet/src/AutoGen.Mistral/DTOs/Error.csindex ed04721c6..77eb2d341 100644--- a/dotnet/src/AutoGen.Mistral/DTOs/Error.cs+++ b/dotnet/src/AutoGen.Mistral/DTOs/Error.cs@@ -1,4 +1,7 @@-using System.Text.Json.Serialization;+// Copyright (c) Microsoft Corporation. All rights reserved.+// Error.cs++using System.Text.Json.Serialization;namespace AutoGen.Mistral{diff --git a/dotnet/src/AutoGen.Mistral/DTOs/Model.cs b/dotnet/src/AutoGen.Mistral/DTOs/Model.csindex 2d653f718..915d2f737 100644--- a/dotnet/src/AutoGen.Mistral/DTOs/Model.cs+++ b/dotnet/src/AutoGen.Mistral/DTOs/Model.cs@@ -1,4 +1,7 @@-using System;+// Copyright (c) Microsoft Corporation. All rights reserved.+// Model.cs++using System;using System.Text.Json.Serialization;namespace AutoGen.Mistral;diff --git a/dotnet/src/AutoGen.OpenAI/AutoGen.OpenAI.csproj b/dotnet/src/AutoGen.OpenAI/AutoGen.OpenAI.csprojindex 182d11222..7220cfe5c 100644--- a/dotnet/src/AutoGen.OpenAI/AutoGen.OpenAI.csproj+++ b/dotnet/src/AutoGen.OpenAI/AutoGen.OpenAI.csproj@@ -4,7 +4,7 @@<RootNamespace>AutoGen.OpenAI</RootNamespace></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup><!-- NuGet Package Settings -->diff --git a/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csproj b/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csprojindex 70d750067..06c464fc9 100644--- a/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csproj+++ b/dotnet/src/AutoGen.SemanticKernel/AutoGen.SemanticKernel.csproj@@ -5,7 +5,7 @@<RootNamespace>AutoGen.SemanticKernel</RootNamespace></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup><!-- NuGet Package Settings -->diff --git a/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csproj b/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csprojindex a9d276631..455816072 100644--- a/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csproj+++ b/dotnet/src/AutoGen.SourceGenerator/AutoGen.SourceGenerator.csproj@@ -13,7 +13,7 @@<DefineConstants Condition="'$(LaunchDebugger)' == 'true'">$(DefineConstants);LAUNCH_DEBUGGER</DefineConstants></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup>diff --git a/dotnet/src/AutoGen/AutoGen.csproj b/dotnet/src/AutoGen/AutoGen.csprojindex 4d0d791eb..2b9aaed6d 100644--- a/dotnet/src/AutoGen/AutoGen.csproj+++ b/dotnet/src/AutoGen/AutoGen.csproj@@ -4,7 +4,7 @@<RootNamespace>AutoGen</RootNamespace></PropertyGroup>- <Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />+ <Import Project="$(RepoRoot)/nuget/nuget-package.props" /><PropertyGroup><!-- NuGet Package Settings -->