30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<PublishWithAspNetCoreTargetManifest Condition="'$(PublishWithAspNetCoreTargetManifest)'=='' and '$(RuntimeIdentifier)'=='' and '$(RuntimeIdentifiers)'=='' and '$(PublishableProject)'=='true'">true</PublishWithAspNetCoreTargetManifest>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
******************************************************************************
|
|
Target: PublishWithAspNetCoreTargetManifest
|
|
Error if PublishWithAspNetCoreTargetManifest is set to true for standalone app
|
|
******************************************************************************
|
|
-->
|
|
<Target
|
|
Name="PublishWithAspNetCoreTargetManifest"
|
|
AfterTargets="PrepareForPublish"
|
|
Condition="'$(PublishWithAspNetCoreTargetManifest)'=='true'" >
|
|
|
|
<Error
|
|
Text="PublishWithAspNetCoreTargetManifest cannot be set to true for standalone apps."
|
|
Condition="'$(RuntimeIdentifier)'!='' or '$(RuntimeIdentifiers)'!=''" />
|
|
|
|
<ItemGroup>
|
|
<AspNetCoreTargetManifestFiles Include="$(MSBuildThisFileDirectory)aspnetcore-store-*.xml"/>
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<TargetManifestFiles>$(TargetManifestFiles);@(AspNetCoreTargetManifestFiles)</TargetManifestFiles>
|
|
</PropertyGroup>
|
|
</Target>
|
|
</Project>
|