Skip to content

Commit c0070ab

Browse files
committed
Used .NET CLI to build and test.
1 parent 1587a74 commit c0070ab

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

26-
- name: Setup MSBuild
27-
uses: microsoft/setup-[email protected]
26+
- name: Setup .NET SDK
27+
uses: actions/setup-dotnet@v4
2828

2929
- name: Build
30-
run: msbuild /t:Rebuild /Restore /v:Minimal
30+
run: dotnet build
3131

3232
- name: Test
33-
run: msbuild tests/ProjectFilter.UnitTests /t:Test /v:Minimal
33+
run: dotnet test tests/ProjectFilter.UnitTests

ProjectFilter.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".solution", ".solution", "{
1515
.editorconfig = .editorconfig
1616
CHANGELOG.md = CHANGELOG.md
1717
Directory.Build.props = Directory.Build.props
18+
global.json = global.json
1819
nuget.config = nuget.config
1920
README.md = README.md
2021
EndProjectSection

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.200"
4+
}
5+
}
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<RootNamespace>ProjectFilter</RootNamespace>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Community.VisualStudio.Toolkit.17" Version="17.0.507" />
10-
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
9+
<PackageReference Include="Community.VisualStudio.Toolkit.17" Version="17.0.527" />
10+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>
@@ -17,10 +17,6 @@
1717
<PackageReference Include="Microsoft.VisualStudio.Sdk.TestFramework.Xunit" Version="17.2.7" />
1818
<PackageReference Include="NSubstitute" Version="5.1.0" />
1919
<PackageReference Include="xunit" Version="2.6.3" />
20-
<PackageReference Include="xunit.runner.msbuild" Version="2.6.3">
21-
<PrivateAssets>all</PrivateAssets>
22-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
23-
</PackageReference>
2420
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5">
2521
<PrivateAssets>all</PrivateAssets>
2622
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@@ -36,8 +32,4 @@
3632
<Reference Include="System.Xaml" />
3733
</ItemGroup>
3834

39-
<Target Name="Test">
40-
<xunit Assemblies="$(TargetPath)" />
41-
</Target>
42-
4335
</Project>

0 commit comments

Comments
 (0)