mirror of
https://github.com/ivuorinen/hiha-arvio.git
synced 2026-02-06 05:46:04 +00:00
Change from -f flag to /p:TargetFramework MSBuild property in dotnet restore commands. **Problem**: - dotnet restore doesn't support -f or --framework flag - Using -f causes error: "MSB1008: Only one project can be specified" - MSBuild interprets "net8.0-maccatalyst" as a second project path **Solution**: Use MSBuild property syntax instead: - Before: dotnet restore src/HihaArvio/HihaArvio.csproj -f net8.0-ios - After: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-ios **Why This Works**: The /p:TargetFramework property tells restore to generate assets specifically for that target framework and its runtime identifiers. **Changes**: - build.yml: Use /p:TargetFramework for iOS and macOS restores - publish.yml: Use /p:TargetFramework for iOS and macOS restores **Verified Locally**: ✅ dotnet restore /p:TargetFramework=net8.0-maccatalyst - Success 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>