Enabling configuring UseHardLinkIfPossible

Some builds fail due to: "Creating hard-links during the build is not allowed. When building target, the following outputs have multiple hard-links...". This change makes it possible to override the default when running the build in such environments.
This commit is contained in:
moozzyk 2016-12-13 12:51:52 -08:00
Родитель 2410a499fb
Коммит 1b10389e84
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -32,7 +32,11 @@
</ItemDefinitionGroup>
<Target Name="signalrclient_AfterBuild" AfterTargets="AfterBuild">
<Copy DestinationFolder="$(TargetDir)" SourceFiles="@(CopyToOutput)" SkipUnchangedFiles="true" UseHardlinksIfPossible="true">
<PropertyGroup>
<UseHardlinksIfPossible Condition="'$(UseHardlinksIfPossible)' == ''">true</UseHardlinksIfPossible>
</PropertyGroup>
<Copy DestinationFolder="$(TargetDir)" SourceFiles="@(CopyToOutput)" SkipUnchangedFiles="true" UseHardlinksIfPossible="$(UseHardlinksIfPossible)">
<Output TaskParameter="DestinationFiles" PropertyName="DestinationFiles" />
<Output TaskParameter="DestinationFiles" ItemName="DestinationFiles" />
<Output TaskParameter="CopiedFiles" PropertyName="CopiedFiles" />