Skip to content

Commit 5e29ac8

Browse files
[.Net] fix code ql for dotnet build && update trigger for dotnet workflow (#2529)
* fix formatting * update dotnet build pipieline
1 parent 11a4342 commit 5e29ac8

File tree

18 files changed

+30
-22
lines changed

18 files changed

+30
-22
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ name: dotnet-ci
66
on:
77
workflow_dispatch:
88
pull_request:
9-
branches: [ "dotnet" ]
9+
branches: [ "main" ]
1010
paths:
1111
- 'dotnet/**'
1212
push:
13-
branches: [ "dotnet" ]
13+
branches: [ "main" ]
1414

1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}

.github/workflows/dotnet-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
push:
99
branches:
1010
- dotnet/release/**
11-
- dotnet/release
1211

1312
concurrency:
1413
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}

dotnet/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
</PropertyGroup>
1919

2020
<PropertyGroup>
21-
<RepoRoot>$(MSBuildThisFileDirectory)../</RepoRoot>
21+
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
2222
</PropertyGroup>
2323
</Project>

dotnet/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.101",
3+
"version": "8.0.104",
44
"rollForward": "latestMinor"
55
}
66
}

dotnet/nuget/nuget-package.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444

4545
<ItemGroup>
4646
<!-- Include icon.png and NUGET.md in the project. -->
47-
<None Include="$(RepoRoot)/dotnet/nuget/icon.png" Link="icon.png" Pack="true" PackagePath="." />
48-
<None Include="$(RepoRoot)/dotnet/nuget/NUGET.md" Link="NUGET.md" Pack="true" PackagePath="." />
47+
<None Include="$(RepoRoot)/nuget/icon.png" Link="icon.png" Pack="true" PackagePath="." />
48+
<None Include="$(RepoRoot)/nuget/NUGET.md" Link="NUGET.md" Pack="true" PackagePath="." />
4949
</ItemGroup>
5050

5151
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">

dotnet/sample/AutoGen.BasicSamples/Example12_TwoAgent_Fill_Application.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Example11_TwoAgent_Fill_Application.cs
2+
// Example12_TwoAgent_Fill_Application.cs
33

44
using System.Text;
5-
using AutoGen.OpenAI;
65
using AutoGen.Core;
7-
using Azure.AI.OpenAI;
6+
using AutoGen.OpenAI;
87
using AutoGen.OpenAI.Extension;
8+
using Azure.AI.OpenAI;
99

1010
namespace AutoGen.BasicSample;
1111

dotnet/src/AutoGen.Core/AutoGen.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<RootNamespace>AutoGen.Core</RootNamespace>
55
</PropertyGroup>
66

7-
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />
7+
<Import Project="$(RepoRoot)/nuget/nuget-package.props" />
88

99
<PropertyGroup>
1010
<!-- NuGet Package Settings -->

dotnet/src/AutoGen.Core/GroupChat/Graph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Workflow.cs
2+
// Graph.cs
33

44
using System;
55
using System.Collections.Generic;

dotnet/src/AutoGen.DotnetInteractive/AutoGen.DotnetInteractive.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
</PropertyGroup>
1010

11-
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />
11+
<Import Project="$(RepoRoot)/nuget/nuget-package.props" />
1212

1313
<PropertyGroup>
1414
<!-- NuGet Package Settings -->

dotnet/src/AutoGen.LMStudio/AutoGen.LMStudio.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<RootNamespace>AutoGen.LMStudio</RootNamespace>
66
</PropertyGroup>
77

8-
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />
8+
<Import Project="$(RepoRoot)/nuget/nuget-package.props" />
99

1010
<PropertyGroup>
1111
<!-- NuGet Package Settings -->

0 commit comments

Comments
 (0)