Files
hiha-arvio/.github
Ismo Vuorinen b3d45526e0 fix: Use correct MSBuild property syntax for target framework in restore
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>
2025-11-18 14:36:06 +02:00
..