From 5e0bfaa463ebc9948135546adae7f81fdee2d052 Mon Sep 17 00:00:00 2001 From: Antonello Provenzano Date: Sat, 25 Jan 2025 15:54:14 +0100 Subject: [PATCH] Adding new switch to .NET restore command to specify Target framework --- .github/workflows/ci.yml | 2 +- .github/workflows/pr-build.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd31997..c803ab3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: run: sudo apt-get install -y libsqlite3-mod-spatialite - name: Restore dependencies - run: dotnet restore + run: dotnet restore -p:TargetFrameworks=${{ env.DOTNET_FX_VERSION }} - name: Build run: dotnet build --no-restore -c Release -f ${{ env.DOTNET_FX_VERSION }} diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index e624ca7..40488a5 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -35,7 +35,7 @@ jobs: run: sudo apt-get install -y libsqlite3-mod-spatialite - name: Restore dependencies - run: dotnet restore + run: dotnet restore -p:TargetFrameworks=${{ env.DOTNET_FX_VERSION }} - name: Build run: dotnet build --no-restore --version-suffix $GITHUB_RUN_ID -c Release -f ${{ env.DOTNET_FX_VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6fa6a3..e164414 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: # run: dotnet nuget add source "https://nuget.pkg.github.com/deveel/index.json" -n "Deveel GitHub" -u ${{ secrets.DEVEEL_NUGET_USER }} -p ${{ secrets.DEVEEL_NUGET_TOKEN }} --store-password-in-clear-text - name: Restore dependencies - run: dotnet restore + run: dotnet restore -p:TargetFrameworks=${{ env.DOTNET_FX_VERSION }} - name: Build run: dotnet build --no-restore -c Release -f ${{ env.DOTNET_FX_VERSION }}