From d512b4ee74d3296d06ead7f12a2e5e164530b883 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Thu, 11 Jan 2024 16:00:42 -0700 Subject: [PATCH] try to set framework on restore --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 48f7c2f..179ca91 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,7 +46,7 @@ jobs: run: "echo '{\"sdk\":{\"version\": \"${{ steps.setup.outputs.dotnet-version }}\"}}' > ./global.json" working-directory: getargv.cs - name: Restore dependencies - run: dotnet restore + run: dotnet restore -p:TargetFramework=net${{ matrix.dotnet }} working-directory: getargv.cs - name: Build run: dotnet build --no-restore --framework net${{ matrix.dotnet }}