[dotnet] Disable SelfContained for the outer build of a universal app build when using NativeAOT.
This commit is contained in:
Родитель
c49888bee1
Коммит
264be7055e
|
@ -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.
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче