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:
authorJeremy Kuhne <jeremy.kuhne@microsoft.com>2015-05-20 04:20:48 +0300
committerJeremy Kuhne <jeremy.kuhne@microsoft.com>2015-05-20 04:20:48 +0300
commitee9c51f501cc367b339fe0799fef95fb05f66235 (patch)
tree122338c6b9d7c79729ad6af1c0761bd67087304a /dir.targets
parentff4ffbeb470a020890ed6e2544aa6cb7cb7561b3 (diff)
parent615c09051f7b1facd6b88d15f38e79b576e3ca4c (diff)
Merge pull request #1796 from JeremyKuhne/MSBuildPackage
Consume MSBuild Mono package
Diffstat (limited to 'dir.targets')
-rw-r--r--dir.targets5
1 files changed, 4 insertions, 1 deletions
diff --git a/dir.targets b/dir.targets
index c9185619dc..b61b410ef5 100644
--- a/dir.targets
+++ b/dir.targets
@@ -73,7 +73,10 @@
<!-- Download latest nuget.exe -->
<DownloadFile FileName="$(NuGetToolPath)"
Address="https://www.nuget.org/nuget.exe"
- Condition="!Exists('$(NuGetToolPath)')" />
+ Condition="!Exists('$(NuGetToolPath)') and '$(OsEnvironment)'=='Windows_NT'" />
+
+ <Exec Command="curl -sSL --create-dirs -o $(NuGetToolPath) https://api.nuget.org/downloads/nuget.exe"
+ Condition="!Exists('$(NuGetToolPath)') and '$(OsEnvironment)'=='Unix'" />
<PropertyGroup>
<_RestoreBuildToolsCommand>$(NugetRestoreCommand) "$(SourceDir).nuget/packages.config"</_RestoreBuildToolsCommand>