Use new SelfContained property
This commit is contained in:
parent
d7533529f9
commit
64ed5bb4ff
|
|
@ -1,6 +1,6 @@
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PublishWithAspNetCoreTargetManifest Condition="'$(PublishWithAspNetCoreTargetManifest)'=='' and '$(RuntimeIdentifier)'=='' and '$(RuntimeIdentifiers)'=='' and '$(PublishableProject)'=='true'">true</PublishWithAspNetCoreTargetManifest>
|
<PublishWithAspNetCoreTargetManifest Condition="'$(PublishWithAspNetCoreTargetManifest)'=='' and '$(SelfContained)'=='false' and '$(PublishableProject)'=='true'">true</PublishWithAspNetCoreTargetManifest>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
@ -15,8 +15,8 @@ Error if PublishWithAspNetCoreTargetManifest is set to true for standalone app
|
||||||
Condition="'$(PublishWithAspNetCoreTargetManifest)'=='true'" >
|
Condition="'$(PublishWithAspNetCoreTargetManifest)'=='true'" >
|
||||||
|
|
||||||
<Error
|
<Error
|
||||||
Text="PublishWithAspNetCoreTargetManifest cannot be set to true for standalone apps."
|
Text="PublishWithAspNetCoreTargetManifest cannot be set to true for self contained apps."
|
||||||
Condition="'$(RuntimeIdentifier)'!='' or '$(RuntimeIdentifiers)'!=''" />
|
Condition="'$(SelfContained)'=='true'" />
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AspNetCoreTargetManifestFiles Include="$(MSBuildThisFileDirectory)aspnetcore-store-*.xml"/>
|
<AspNetCoreTargetManifestFiles Include="$(MSBuildThisFileDirectory)aspnetcore-store-*.xml"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue