mirror of
https://github.com/ivuorinen/hiha-arvio.git
synced 2026-03-13 13:00:45 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user