Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
Context: dotnet/maui#1578 In the latest xamarin-macios bump, the dotnent/maui build started failing because the `$(OutputPath)` of all the projects changed from: bin/Debug/net6.0-ios/ bin/Debug/net6.0-maccatalyst/ To: bin/Debug/net6.0-ios/iossimulator-x64/ bin/Debug/net6.0-maccatalyst/maccatalyst-x64/ Class library projects appear to have `$(RuntimeIdentifier)` set by default. I don't think this is needed, because class libraries do not need to be compiled as `--self-contained` apps. On the Android side, we only set a default `$(RuntimeIdentifiers)` for application projects: https://github.com/xamarin/xamarin-android/blob/7c5fab13329ee898fb1562f83576a7ca881f2881/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets#L49-L61 I think the correct change here is to check: '$(OutputType)' == 'Exe' Or '$(IsAppExtension)' == 'true' So Apple platforms only put a default `$(RuntimeIdentifier)` for applications or extensions. Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
- Loading branch information
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ [CI Build] Tests passed on Build. ✅
Tests passed on Build.
API diff
✅ API Diff from stable
View API diff
API & Generator diff
✅ API Diff (from PR only) (no change)
✅ Generator Diff (no change)
Packages generated
View packages
🎉 All 221 tests passed 🎉
Pipeline on Agent XAMBOT-1038.BigSur'
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests tvOS 🔥
Not enough free space in the host.
Pipeline on Agent
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.
Pipeline on Agent
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.
Pipeline on Agent
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS Mac Catalina (10.15) ✅
Tests passed
All tests on macOS X Mac Catalina (10.15) passed.
Pipeline on Agent
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS Mac Mojave (10.14) ✅
Tests passed
All tests on macOS X Mac Mojave (10.14) passed.
Pipeline on Agent
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS Mac High Sierra (10.13) ✅
Tests passed
All tests on macOS X Mac High Sierra (10.13) passed.
Pipeline on Agent
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)
33f8143
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.
Pipeline on Agent
[dotnet] no default $(RuntimeIdentifier) for class libraries (#12093)