Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric St. John <ericstj@microsoft.com>2016-12-08 00:20:08 +0300
committerEric St. John <ericstj@microsoft.com>2016-12-08 20:58:38 +0300
commitb2b13a44d2e870b0e3e95d53c0fe913e50d82165 (patch)
treebb9972f4dcd8ce33c6fb5b24e59b62a0ffae6509 /binplace.targets
parentb8cf6c672d60623f7427b22da603b629de2229c3 (diff)
Binplace simple assemblies to TargetingPack
Diffstat (limited to 'binplace.targets')
-rw-r--r--binplace.targets8
1 files changed, 6 insertions, 2 deletions
diff --git a/binplace.targets b/binplace.targets
index a8c4c64c21..93ebfe903f 100644
--- a/binplace.targets
+++ b/binplace.targets
@@ -3,13 +3,17 @@
<PropertyGroup>
<IsRuntimeAssembly Condition="'$(IsRuntimeAssembly)'=='' AND '$(IsReferenceAssembly)' != 'true'">true</IsRuntimeAssembly>
- <BinPlaceStuffDependsOn Condition="'$(IsReferenceAssembly)' == 'true'">$(BinPlaceStuffDependsOn);BinPlaceReferenceAssembly</BinPlaceStuffDependsOn>
- <BinPlaceStuffDependsOn Condition="'$(IsRuntimeAssembly)' == 'true'">$(BinPlaceStuffDependsOn);BinPlaceRuntimeAssembly</BinPlaceStuffDependsOn>
+ <!-- Try to determine if this is a simple library without a ref project.
+ https://github.com/dotnet/corefx/issues/14291 is tracking cleaning this up -->
+ <IsRuntimeAndReferenceAssembly Condition="'$(IsRuntimeAndReferenceAssembly)' == '' and '$(IsRuntimeAssembly)' == 'true' and Exists('$(SourceDir)/$(AssemblyName)') and !Exists('$(SourceDir)/$(AssemblyName)/ref') and !$(AssemblyName.StartsWith('System.Private'))">true</IsRuntimeAndReferenceAssembly>
+ <BinPlaceStuffDependsOn Condition="'$(IsReferenceAssembly)' == 'true' OR '$(IsRuntimeAndReferenceAssembly)' == 'true'">$(BinPlaceStuffDependsOn);BinPlaceReferenceAssembly</BinPlaceStuffDependsOn>
+ <BinPlaceStuffDependsOn Condition="'$(IsRuntimeAssembly)' == 'true' OR '$(IsRuntimeAndReferenceAssembly)' == 'true'">$(BinPlaceStuffDependsOn);BinPlaceRuntimeAssembly</BinPlaceStuffDependsOn>
</PropertyGroup>
<Target Name="BinPlaceStuff" DependsOnTargets="$(BinPlaceStuffDependsOn)" AfterTargets="CopyFilesToOutputDirectory">
<Message Importance="low" Text="IsRuntimeAssembly: $(IsRuntimeAssembly)" />
<Message Importance="low" Text="IsReferenceAssembly: $(IsReferenceAssembly)" />
+ <Message Importance="low" Text="IsRuntimeAndReferenceAssembly: $(IsRuntimeAndReferenceAssembly)" />
</Target>
<Target Name="BinPlaceReferenceAssembly" DependsOnTargets="GetTargetingPackDir">