Skip to content

Commit a4c5d98

Browse files
emmcheCopilot
andcommitted
Fix CI restore: use msbuild -t:Restore for native/managed project graph
Replace nuget restore with msbuild -t:Restore to properly handle mixed native C++ and managed C# project references without needing AssetTargetFallback or SkipGetTargetFrameworkProperties workarounds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e06a4f3 commit a4c5d98

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/action-ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ jobs:
6161
- uses: actions/checkout@v4
6262
- uses: microsoft/setup-msbuild@v2
6363
name: Setup msbuild
64-
- uses: nuget/setup-nuget@v2
65-
name: Use nuget 6.x
66-
with:
67-
nuget-version: '6.x'
68-
- run: nuget restore ./src/Calculator.sln
64+
- run: msbuild ./src/Calculator.sln -t:Restore -p:Platform=${{ matrix.platform }} -p:RestorePackagesConfig=true
6965
name: Restore nuget dependencies
7066
- run: |
7167
./build/scripts/UpdateAppxManifestVersion.ps1 `

0 commit comments

Comments
 (0)