[dotnet] There's no need to compute the publish location if we're not building a (publishable) app

This commit is contained in:
Rolf Bjarne Kvinge 2021-08-12 12:30:57 +02:00
Родитель 3b187b4075
Коммит 94b1536ba8
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -1153,7 +1153,10 @@
</_ComputeLinkModeDependsOn>
</PropertyGroup>
<Target Name="_ComputePublishLocation" DependsOnTargets="_GenerateBundleName;_ParseBundlerArguments;_ComputeMonoLibraries">
<Target Name="_ComputePublishLocation"
DependsOnTargets="_GenerateBundleName;_ParseBundlerArguments;_ComputeMonoLibraries"
Condition="'$(_CanOutputAppBundle)' == 'true'"
>
<PropertyGroup>
<_AssemblyPublishDir Condition="'$(_PlatformName)' == 'iOS' Or '$(_PlatformName)' == 'tvOS' Or '$(_PlatformName)' == 'watchOS'">$(_RelativeAppBundlePath)\</_AssemblyPublishDir>
<_AssemblyPublishDir Condition="'$(_PlatformName)' == 'macOS' Or '$(_PlatformName)' == 'MacCatalyst'">$(_RelativeAppBundlePath)\Contents\$(_CustomBundleName)\</_AssemblyPublishDir>