android CI 잡 MSB3030 수정: CLI 전역 -p:RuntimeIdentifiers=android-arm64 가 참조 프로젝트(net8.0 Mobile.Core)까지 전파돼 RID 경로 dll 을 못 찾던 결함(구 GitHub 스캐폴드에 잠재, 첫 실행에서 실증). Mobile csproj 에 CiPackArm64Only 게이트 조건부 RuntimeIdentifiers 로 이전 — 로컬 동일 명령 재현: exit 0, arm64-v8a 단독 23.3MB APK 확인
This commit is contained in:
parent
b05e8bf009
commit
d98c73451f
2 changed files with 7 additions and 1 deletions
|
|
@ -115,8 +115,10 @@ jobs:
|
|||
"-p:AndroidSigningKeyAlias=$env:ANDROID_KEY_ALIAS",
|
||||
"-p:AndroidSigningKeyPass=$env:ANDROID_KEY_PASS", "-p:AndroidSigningStorePass=$env:ANDROID_KEY_PASS"
|
||||
} else { Write-Host "ANDROID_KEYSTORE 시크릿 없음 — 디버그 서명 APK 생성" }
|
||||
# RID 는 CLI 전역 속성이 아니라 csproj 게이트(CiPackArm64Only)로 좁힌다 — 전역 -p:RuntimeIdentifiers 는
|
||||
# 참조 프로젝트(net8.0 Mobile.Core)까지 전파돼 MSB3030 으로 깨진다(2026-08-17 리허설 실증)
|
||||
dotnet publish VideoDownloader.Mobile -f net10.0-android -c Release `
|
||||
-p:AndroidPackageFormat=apk -p:RuntimeIdentifiers=android-arm64 @sign -o out/android
|
||||
-p:AndroidPackageFormat=apk -p:CiPackArm64Only=true @sign -o out/android
|
||||
if ($LASTEXITCODE -ne 0) { throw "publish 실패" }
|
||||
$apk = Get-ChildItem out/android/*-Signed.apk | Select-Object -First 1
|
||||
if (-not $apk) { $apk = Get-ChildItem out/android/*.apk | Select-Object -First 1 }
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@
|
|||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">net10.0-android;net10.0-ios</TargetFrameworks>
|
||||
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('OSX'))">net10.0-android</TargetFrameworks>
|
||||
|
||||
<!-- CI 배포 APK 는 arm64 단독(실기기 표준). CLI 전역 -p:RuntimeIdentifiers 는 참조 프로젝트
|
||||
(net8.0 Mobile.Core)까지 전파돼 MSB3030 으로 깨지므로, 게이트 속성을 받아 여기서만 좁힌다. -->
|
||||
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' and '$(CiPackArm64Only)' == 'true'">android-arm64</RuntimeIdentifiers>
|
||||
|
||||
|
||||
<!-- Note for MacCatalyst:
|
||||
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue