Commit dee53ef
fix(ci): pass -p:Platform=$hostArch to TestApp build
Scaffolded apps inherit Directory.Build.props:
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
The SelfContained target rejects AnyCPU (it needs a concrete arch to
embed the right runtime), so `dotnet build TestApp` with no `-p:Platform`
fails on a fresh clone:
Microsoft.WindowsAppSDK.SelfContained.targets(74,9): error :
WindowsAppSDKSelfContained requires a supported Windows architecture.
Detect $env:PROCESSOR_ARCHITECTURE and pass it through. This is the
same wart the user flagged earlier ("we don't want to REQUIRE devs to
do self contained") — addressing that properly means changing the
default in Directory.Build.props or in the template, which is bigger
than this PR's scope. For now, unblock CI.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a55433d commit dee53ef
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
167 | 172 | | |
168 | 173 | | |
| 174 | + | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
| |||
0 commit comments