[dotnet] Disable SelfContained for the outer build of a universal app build when using NativeAOT.

This commit is contained in:
Rolf Bjarne Kvinge 2023-06-21 20:49:58 +02:00
Родитель c49888bee1
Коммит 264be7055e
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -102,6 +102,20 @@
<SelfContained>true</SelfContained> <SelfContained>true</SelfContained>
</PropertyGroup> </PropertyGroup>
<!--
SelfContained is automatically enabled if PublishAot is true, and that
doesn't work properly (restore fails because RuntimeIdentifier is not
set) when doing the outer build of a universal apps (when
RuntimeIdentifier=''), so manually disable SelfContained in that case.
This might not be necessary after: https://github.com/dotnet/sdk/pull/33229
-->
<PropertyGroup Condition="'$(PublishAot)' == 'true' And '$(_IsPublishing)' == 'true' And '$(RuntimeIdentifiers)' != '' And '$(RuntimeIdentifier)' == '' And '$(SelfContained)' == ''">
<SelfContained>false</SelfContained>
</PropertyGroup>
<!-- <!--
Enable LLVM by default for mobile release builds. Enable LLVM by default for mobile release builds.