Use new SelfContained property

This commit is contained in:
John Luo 2017-06-23 17:59:26 -07:00
parent d7533529f9
commit 64ed5bb4ff
1 changed files with 3 additions and 3 deletions

View File

@ -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"/>