fix: conditionally include iOS/macOS targets only on macOS

- Add MSBuild condition to only include net8.0-ios and net8.0-maccatalyst on macOS
- On Linux/Windows, only net8.0 is included as a target framework
- Fixes GitHub dependency submission failing on Ubuntu runners
- Remove wasm-tools installation from test workflow (no longer needed)

This fixes the root cause of NETSDK1147 errors on non-macOS platforms.
This commit is contained in:
2025-11-19 00:37:27 +02:00
parent 09d8be41e3
commit 5e0fb1d033
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,10 @@
<PropertyGroup>
<!-- Per spec: iOS (primary), Web (Blazor), macOS (tertiary) -->
<!-- net8.0 included for unit testing without platform dependencies -->
<TargetFrameworks>net8.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<!-- Include iOS/macOS targets only on macOS (where they can be built) -->
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">net8.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<!-- On Linux/Windows, only include net8.0 -->
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('OSX'))">net8.0</TargetFrameworks>
<!-- Note for MacCatalyst:
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.