diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f873c5..007d58f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,6 @@ name: Continuous Integration on: - push: - branches: - - "**" - - tags-ignore: - - "**" - pull_request: types: [opened, synchronize, edited] @@ -21,13 +14,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1.0.2 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 - name: Build - run: msbuild /t:Rebuild /Restore /v:Minimal + run: dotnet build - name: Test - run: msbuild tests/ProjectFilter.UnitTests /t:Test /v:Minimal + run: dotnet test tests/ProjectFilter.UnitTests diff --git a/Directory.Build.props b/Directory.Build.props index 583c636..005d343 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,11 @@ - 10 + 2.5.0 + net48 + enable + 10.0 + AllEnabledByDefault diff --git a/ProjectFilter.sln b/ProjectFilter.sln index de65416..bf33df6 100644 --- a/ProjectFilter.sln +++ b/ProjectFilter.sln @@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".solution", ".solution", "{ .editorconfig = .editorconfig CHANGELOG.md = CHANGELOG.md Directory.Build.props = Directory.Build.props + global.json = global.json nuget.config = nuget.config README.md = README.md EndProjectSection diff --git a/global.json b/global.json new file mode 100644 index 0000000..4871c2a --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "version": "9.0.200" + } +} \ No newline at end of file diff --git a/source/ProjectFilter/ProjectFilter.csproj b/source/ProjectFilter/ProjectFilter.csproj index 08d8d19..bdefbc0 100644 --- a/source/ProjectFilter/ProjectFilter.csproj +++ b/source/ProjectFilter/ProjectFilter.csproj @@ -1,18 +1,12 @@ - - - + - net48 - ProjectFilter - true - enable - 10.0 - AllEnabledByDefault + $(VsSDKInstall)\Microsoft.VsSDK.targets - 2.5.0 + ProjectFilter + true @@ -86,15 +80,15 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive compile; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -108,33 +102,8 @@ - - - Always - - - - - - source.extension.vsixmanifest - $(IntermediateOutputPath)$(VsixManifestOriginal).backup - - - - - - - - - - - + + @@ -144,7 +113,4 @@ - - - diff --git a/source/ProjectFilter/source.extension.vsixmanifest b/source/ProjectFilter/source.extension.vsixmanifest index e96854e..65cd890 100644 --- a/source/ProjectFilter/source.extension.vsixmanifest +++ b/source/ProjectFilter/source.extension.vsixmanifest @@ -1,7 +1,7 @@ - + Project Filter Quickly load and unload projects. https://github.com/reduckted/ProjectFilter diff --git a/tests/ProjectFilter.UnitTests/ProjectFilter.UnitTests.csproj b/tests/ProjectFilter.UnitTests/ProjectFilter.UnitTests.csproj index 67453f3..4ca9fc5 100644 --- a/tests/ProjectFilter.UnitTests/ProjectFilter.UnitTests.csproj +++ b/tests/ProjectFilter.UnitTests/ProjectFilter.UnitTests.csproj @@ -1,17 +1,13 @@ - + - net48 ProjectFilter false - enable - 10.0 - AllEnabledByDefault - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -21,10 +17,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -40,8 +32,4 @@ - - - -