Skip to content

Commit 2bfe60e

Browse files
committed
Fix windows multisdk
1 parent 26a02cf commit 2bfe60e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/dotnet.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
- name: .net SxS
2727
run: |
2828
rsync -a ${DOTNET_ROOT/3.1.200/2.1.300}/* $DOTNET_ROOT/
29+
30+
- name: Setup side by side .NET SDKs on Windows
31+
if: matrix.os == 'windows-latest'
32+
run: |
33+
SET DOTNET_21_ROOT=%DOTNET_ROOT:3.1.200=2.1.300%
34+
xcopy /s /y /d %DOTNET_21_ROOT% %DOTNET_ROOT%
35+
shell: cmd
2936
- run: dotnet build --configuration Release
3037
- name: test with dotnet
3138
run: dotnet test /p:CollectCoverage=true /p:ExcludeByFile=\"**/KubernetesClient/generated/**/*.cs\" /p:CoverletOutputFormat="cobertura"

0 commit comments

Comments
 (0)