File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # This workflow will build a .NET project
2- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3-
41name : .NET build
52
63on :
74 push :
8- branches : [ "main" ]
5+ branches : ["main"]
96 pull_request :
10- branches : [ "main" ]
7+ branches : ["main"]
118
129jobs :
1310 build :
14-
1511 runs-on : ubuntu-latest
1612
1713 steps :
18- - uses : actions/checkout@v3
19- - name : Setup .NET
20- uses : actions/setup-dotnet@v3
21- with :
22- dotnet-version : 6.0.x
23- - name : Restore dependencies
24- run : dotnet restore
25- - name : Build
26- run : dotnet build --no-restore
27- - name : Test
28- run : dotnet test --no-build --verbosity normal
14+ - uses : actions/checkout@v4
15+
16+ - name : Setup .NET
17+ uses : actions/setup-dotnet@v4
18+ with :
19+ dotnet-version : 10.0.x
20+
21+ - name : Restore dependencies
22+ run : dotnet restore
23+
24+ - name : Build
25+ run : dotnet build --no-restore --configuration Release
26+
27+ - name : Test
28+ run : dotnet test --no-build --configuration Release --verbosity normal
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net6 .0</TargetFramework >
5+ <TargetFramework >net10 .0</TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88 </PropertyGroup >
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net6 .0</TargetFramework >
5+ <TargetFramework >net10 .0</TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88 </PropertyGroup >
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net6 .0</TargetFramework >
5+ <TargetFramework >net10 .0</TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88 </PropertyGroup >
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net6 .0</TargetFramework >
4+ <TargetFramework >net10 .0</TargetFramework >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77 </PropertyGroup >
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net6 .0</TargetFramework >
4+ <TargetFramework >net10 .0</TargetFramework >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77
88 <IsPackable >false</IsPackable >
99 </PropertyGroup >
1010
1111 <ItemGroup >
12- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.1.0" />
13- <PackageReference Include =" MSTest.TestAdapter" Version =" 2.2.8" />
14- <PackageReference Include =" MSTest.TestFramework" Version =" 2.2.8" />
15- <PackageReference Include =" coverlet.collector" Version =" 3.1.2" />
12+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 18.3.0" />
13+ <PackageReference Include =" MSTest.TestAdapter" Version =" 4.1.0" />
14+ <PackageReference Include =" MSTest.TestFramework" Version =" 4.1.0" />
15+ <PackageReference Include =" coverlet.collector" Version =" 8.0.0" >
16+ <PrivateAssets >all</PrivateAssets >
17+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
18+ </PackageReference >
1619 </ItemGroup >
1720
1821 <ItemGroup >
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net6 .0</TargetFramework >
4+ <TargetFramework >net10 .0</TargetFramework >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77 </PropertyGroup >
You can’t perform that action at this time.
0 commit comments