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:
authorJose Perez Rodriguez <joperezr@microsoft.com>2016-07-02 00:23:54 +0300
committerGitHub <noreply@github.com>2016-07-02 00:23:54 +0300
commit5eb4d84c51fdf0e90b9d9e143873131a7d51373f (patch)
treec8f0964b42e8918ee536c70744cc85e8414fa1a3 /src/post.builds
parent2c87b705af5099258ea29f6de4de67afd45db797 (diff)
Moving all of the Compat Assemblies to flat folder (#9782)
Moving all of the Compat Assemblies to flat folder
Diffstat (limited to 'src/post.builds')
-rw-r--r--src/post.builds16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/post.builds b/src/post.builds
index 9f63aa55f1..69fa304600 100644
--- a/src/post.builds
+++ b/src/post.builds
@@ -15,4 +15,20 @@
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
<Target Name="DumpTargets" />
+ <Target Name="CopyContractsToCompatFolder" AfterTargets="Build">
+ <ItemGroup>
+ <AllCompatAssemblies Include="$(BaseOutputPath)/**/Compat/*.dll" />
+ <AllCompatAssemblies>
+ <IsRefAssembly Condition="$([System.String]::Copy('%(AllCompatAssemblies.FullPath)').Contains('/ref/')) OR
+ $([System.String]::Copy('%(AllCompatAssemblies.FullPath)').Contains('\ref\'))">true</IsRefAssembly>
+ <IsIntermediateAssembly Condition="$([System.String]::Copy('%(AllCompatAssemblies.FullPath)').Contains('/obj/')) OR
+ $([System.String]::Copy('%(AllCompatAssemblies.FullPath)').Contains('\obj\'))">true</IsIntermediateAssembly>
+ </AllCompatAssemblies>
+ <AllCompatAssemblies Remove="@(AllCompatAssemblies)" Condition="'%(AllCompatAssemblies.IsIntermediateAssembly)'=='true'" />
+ </ItemGroup>
+
+ <Copy SourceFiles="@(AllCompatAssemblies)" Condition="'%(AllCompatAssemblies.IsRefAssembly)'=='true'" DestinationFolder="$(BaseOutputPath)/Compat/ref" />
+ <Copy SourceFiles="@(AllCompatAssemblies)" Condition="'%(AllCompatAssemblies.IsRefAssembly)'!='true'" DestinationFolder="$(BaseOutputPath)/Compat/facades" />
+ </Target>
+
</Project>