From 8030a574e2a466178421bc76e53194f13d6a542a Mon Sep 17 00:00:00 2001 From: Vijay Ramakrishnan Date: Thu, 25 Aug 2016 15:30:45 -0700 Subject: [PATCH] Importing the publish profiles from the package (as a fallback) to make it work with DotNetCore projects --- .../Microsoft.DotNet.Publishing.targets | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Microsoft.DotNet.Publishing.Targets/Microsoft.DotNet.Publishing.targets b/src/Microsoft.DotNet.Publishing.Targets/Microsoft.DotNet.Publishing.targets index 3a8b43c50f47..5d1027657b62 100644 --- a/src/Microsoft.DotNet.Publishing.Targets/Microsoft.DotNet.Publishing.targets +++ b/src/Microsoft.DotNet.Publishing.Targets/Microsoft.DotNet.Publishing.targets @@ -18,10 +18,11 @@ Copyright (C) Microsoft Corporation. All rights reserved. $(MSBuildThisFileDirectory)..\ - $(MSBuildThisFileDirectory)..\SaveTargets - $(MSBuildThisFileDirectory)..\CollectTargets - $(MSBuildThisFileDirectory)..\TransformTargets - $(MSBuildThisFileDirectory)..\DeployTargets + $(MSBuildThisFileDirectory)..\SaveTargets\ + $(MSBuildThisFileDirectory)..\CollectTargets\ + $(MSBuildThisFileDirectory)..\TransformTargets\ + $(MSBuildThisFileDirectory)..\DeployTargets\ + $(MSBuildThisFileDirectory)..\Content\Properties\PublishProfiles\ - + @@ -78,11 +79,12 @@ Copyright (C) Microsoft Corporation. All rights reserved. --> - $(MSBuildProjectDirectory)\My Project\PublishProfiles - $(MSBuildProjectDirectory)\Properties\PublishProfiles + $(MSBuildProjectDirectory)\My Project\PublishProfiles\ + $(MSBuildProjectDirectory)\Properties\PublishProfiles\ $(PublishProtocol)Profile $([System.IO.Path]::GetFileNameWithoutExtension($(PublishProfile))) - $(PublishProfileRootFolder)\$(PublishProfileName).pubxml + $(PublishProfileRootFolder)$(PublishProfileName).pubxml + $(DotNetPublishingProfilesDirectory)$(PublishProfileName).pubxml