[.Net] fix code ql for dotnet build && update trigger for dotnet workflow (#2529)

* fix formatting

* update dotnet build pipieline
This commit is contained in:
Xiaoyun Zhang 2024-04-29 13:27:57 -07:00 committed by GitHub
parent 11a43421e3
commit 5e29ac84dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
18 changed files with 30 additions and 22 deletions

View File

@ -6,11 +6,11 @@ name: dotnet-ci
on:
workflow_dispatch:
pull_request:
branches: [ "dotnet" ]
branches: [ "main" ]
paths:
- 'dotnet/**'
push:
branches: [ "dotnet" ]
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}

View File

@ -8,7 +8,6 @@ on:
push:
branches:
- dotnet/release/**
- dotnet/release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}

View File

@ -18,6 +18,6 @@
</PropertyGroup>
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)../</RepoRoot>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
</PropertyGroup>
</Project>

View File

@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.101",
"version": "8.0.104",
"rollForward": "latestMinor"
}
}

View File

@ -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' ">

View File

@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Example11_TwoAgent_Fill_Application.cs
// Example12_TwoAgent_Fill_Application.cs
using 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;

View File

@ -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 -->

View File

@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Workflow.cs
// Graph.cs
using System;
using System.Collections.Generic;

View File

@ -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 -->

View File

@ -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 -->

View File

@ -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 -->

View File

@ -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;

View File

@ -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
{

View File

@ -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;

View File

@ -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 -->

View File

@ -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 -->

View File

@ -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>

View File

@ -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 -->