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:
authorWes Haggard <weshaggard@users.noreply.github.com>2015-02-16 21:53:39 +0300
committerWes Haggard <weshaggard@users.noreply.github.com>2015-02-16 21:53:39 +0300
commit0b0805e957ae1ce4fb0b650e7c8f538a9d5ea417 (patch)
treec296e9ddd2a4eaf743747233b0bbd570026d12b9 /dir.targets
parentc36ce308121fc14a020ce82db3032066abb86c16 (diff)
parente61c0831412019745bf3128d9582308ebb9aa64f (diff)
Merge pull request #759 from weshaggard/IncrementalBuildTweaks
Incremental build tweaks
Diffstat (limited to 'dir.targets')
-rw-r--r--dir.targets16
1 files changed, 12 insertions, 4 deletions
diff --git a/dir.targets b/dir.targets
index d66ac669d8..efbd426d22 100644
--- a/dir.targets
+++ b/dir.targets
@@ -24,12 +24,12 @@
try
{
if (!File.Exists(FileName))
- File.Move(tempFile, FileName);
+ File.Move(tempFile, FileName);
}
finally
{
- if (File.Exists(tempFile))
- File.Delete(tempFile);
+ if (File.Exists(tempFile))
+ File.Delete(tempFile);
}
]]>
</Code>
@@ -43,7 +43,7 @@
<Target Name="_RestoreBuildToolsWrapper" DependsOnTargets="_RestoreBuildTools" />
<Target Name="_RestoreBuildTools"
- Inputs="$(MSBuildThisFileFullPath);$(MSBuildThisFileDirectory)dir.props"
+ Inputs="$(MSBuildThisFileDirectory)dir.props;$(SourceDir).nuget\packages.config"
Outputs="$(ToolsDir)Microsoft.DotNet.Build.Tasks.dll;$(NugetToolPath)">
<Message Importance="High" Text="Restoring build tools..." />
@@ -57,6 +57,14 @@
<Error Condition="'$(ErrorIfBuildToolsRestoredFromIndividualProject)'=='true'"
Text="The build tools package was just restored and so we cannot continue the build of an individual project because targets from the build tools package were not able to be imported. Please retry the build the individual project again." />
+
+ <!--
+ There are cases where the inputs could be newer than the outputs but the
+ download or restore may not need to update. In such cases we need to touch
+ these files otherwise we continually run this target over and over for
+ every project until these files are cleaned (if the are ever cleaned).
+ -->
+ <Touch Files="$(ToolsDir)Microsoft.DotNet.Build.Tasks.dll;$(NugetToolPath)" />
</Target>
</Project> \ No newline at end of file