mirror of
https://github.com/ivuorinen/hiha-arvio.git
synced 2026-01-26 03:14:00 +00:00
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>
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for iOS
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj -f net8.0-ios
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-ios
|
||||
|
||||
- name: Build iOS
|
||||
run: dotnet build src/HihaArvio/HihaArvio.csproj -f net8.0-ios -c Release --no-restore /p:ArchiveOnBuild=false /p:EnableCodeSigning=false
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for macOS Catalyst
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj -f net8.0-maccatalyst
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-maccatalyst
|
||||
|
||||
- name: Build macOS Catalyst
|
||||
run: dotnet build src/HihaArvio/HihaArvio.csproj -f net8.0-maccatalyst -c Release --no-restore /p:ArchiveOnBuild=false /p:EnableCodeSigning=false
|
||||
|
||||
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -102,7 +102,7 @@ jobs:
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for iOS
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj -f net8.0-ios
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-ios
|
||||
|
||||
- name: Build iOS Release
|
||||
run: |
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
run: dotnet workload restore src/HihaArvio/HihaArvio.csproj
|
||||
|
||||
- name: Restore dependencies for macOS Catalyst
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj -f net8.0-maccatalyst
|
||||
run: dotnet restore src/HihaArvio/HihaArvio.csproj /p:TargetFramework=net8.0-maccatalyst
|
||||
|
||||
- name: Build macOS Catalyst Release
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user