Created
December 9, 2010 02:36
-
-
Save jstangroome/734259 to your computer and use it in GitHub Desktop.
Use hard links instead of copying files during builds.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msbuild /p:CreateHardLinksForAdditionalFilesIfPossible=true /p:CreateHardLinksForCopyAdditionalFilesIfPossible=true /p:CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=true /p:CreateHardLinksForCopyLocalIfPossible=true /p:CreateHardLinksForPublishFilesIfPossible=true %* |
or you can replace UseHardlinksIfPossible="$(CreateHardLinksForCopyLocalIfPossible)" to ="true" in Framework\v4.0.30319\Microsoft.Common.targets
or you can replace UseHardlinksIfPossible="$(CreateHardLinksForCopyLocalIfPossible)" to ="true" in Framework\v4.0.30319\Microsoft.Common.targets
Where can I replace that? I assume the goal is that when building inside Visual Studio hard links are generated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sadly there is no way to force creation of hardlinks when building in vs for
all except CreateHardLinksForAdditionalFilesIfPossible