Skip to content

Commit 9ef1d1e

Browse files
committed
ci: add VC++
1 parent 48211bd commit 9ef1d1e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/library.nuget.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ jobs:
1919
with:
2020
dotnet-version: 9.0.x
2121

22-
- name: Install dependencies
22+
- name: Setup MSBuild
23+
uses: microsoft/setup-msbuild@v2
24+
25+
- name: Setup Visual Studio
26+
uses: microsoft/setup-vsbuild@v1
27+
with:
28+
vs-version: '[17.0,18.0)' # VS2022
29+
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64'
30+
31+
- name: Restore dependencies
2332
run: dotnet restore src/UnlockerPatch/UnlockerPatch.csproj
2433

25-
- name: Build
26-
run: dotnet build src/UnlockerPatch/UnlockerPatch.csproj --configuration Release --no-restore
34+
- name: Build solution
35+
run: msbuild src/UnlockerPatch/UnlockerPatch.csproj /p:Configuration=Release

0 commit comments

Comments
 (0)