From b112693f669b11e3f9705410b1db938c0df161c6 Mon Sep 17 00:00:00 2001 From: Daniel Slapman Date: Sat, 18 Nov 2023 20:14:06 +0100 Subject: [PATCH] Enable multiple targets --- .github/workflows/build.yml | 5 ++++- .github/workflows/publish.yml | 5 ++++- src/Directory.Build.props | 2 +- src/LeviySoft.Visor.Gen/LeviySoft.Visor.Gen.csproj | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3a47df8..19bef4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.x' # SDK Version to use. + dotnet-version: | + 6.x + 7.x + 8.x - name: build run: | dotnet build src/Visor.sln -c Release diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3ce7bd1..c64298f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.x' # SDK Version to use. + dotnet-version: | + 6.x + 7.x + 8.x - name: prepare version run: | echo "$VERSION" diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 518b758..178cfed 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,6 +1,6 @@ - net6.0 + net6.0;net7.0;net8.0 enable Nullable diff --git a/src/LeviySoft.Visor.Gen/LeviySoft.Visor.Gen.csproj b/src/LeviySoft.Visor.Gen/LeviySoft.Visor.Gen.csproj index f92e264..cbf21c2 100644 --- a/src/LeviySoft.Visor.Gen/LeviySoft.Visor.Gen.csproj +++ b/src/LeviySoft.Visor.Gen/LeviySoft.Visor.Gen.csproj @@ -1,7 +1,7 @@ - netstandard2.0 + netstandard2.0 disable false danslapman