Skip to content

Commit cbb4916

Browse files
dashkodojaviercn
andauthored
Added copy parameters to enable parallel build (#45779)
* Added copy parameters to enable parallel build * Update src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets Co-authored-by: Javier Calvarro Nelson <[email protected]> * Update src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets Co-authored-by: Javier Calvarro Nelson <[email protected]> * Fix property name in condition * Use default values for Co-authored-by: Javier Calvarro Nelson <[email protected]>
1 parent de8b5af commit cbb4916

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,17 @@
6464
Condition="'%(_ContentRootProjectReferences.Identity)' != ''"
6565
Include="$([System.IO.Path]::ChangeExtension('%(_ContentRootProjectReferences.ResolvedFrom)', '.deps.json'))" />
6666
</ItemGroup>
67+
68+
<PropertyGroup>
69+
<_CreateHardLinksForMvcCopyDependencyFilesIfPossible Condition="'$(_CreateHardLinksForMvcCopyDependencyFilesIfPossible)' == ''">$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)</_CreateHardLinksForMvcCopyDependencyFilesIfPossible>
70+
<_CreateSymbolicLinksForMvcCopyDependencyFilesIfPossible Condition="'$(_CreateSymbolicLinksMvcCopyDependencyFilesIfPossible)' == ''">$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)</_CreateSymbolicLinksForMvcCopyDependencyFilesIfPossible>
71+
</PropertyGroup>
6772

68-
<Copy SourceFiles="%(DepsFilePaths.FullPath)" DestinationFolder="$(OutDir)" Condition="Exists('%(DepsFilePaths.FullPath)')" />
73+
<Copy SourceFiles="%(DepsFilePaths.FullPath)"
74+
DestinationFolder="$(OutDir)"
75+
UseHardlinksIfPossible="$(_CreateHardLinksForMvcCopyDependencyFilesIfPossible)"
76+
UseSymboliclinksIfPossible="$(_CreateSymbolicLinksForMvcCopyDependencyFilesIfPossible)"
77+
Condition="Exists('%(DepsFilePaths.FullPath)')" />
6978
</Target>
7079

7180
</Project>

0 commit comments

Comments
 (0)