diff options
author | bradwilson <dotnetguy@gmail.com> | 2012-07-18 23:00:43 +0400 |
---|---|---|
committer | bradwilson <dotnetguy@gmail.com> | 2012-07-18 23:09:02 +0400 |
commit | eecfe803d31d887a2ee54cbce95d23721103f911 (patch) | |
tree | 7089f90498bcea1e52a6fa86d6bc2ab697b6aa93 /.nuget | |
parent | 44b53cd4dd84db8c47e00397de7538ac29f7b4f8 (diff) |
Tweak package restore algorithm
Diffstat (limited to '.nuget')
-rw-r--r-- | .nuget/NuGet.targets | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/.nuget/NuGet.targets b/.nuget/NuGet.targets index 87a2fee2..bf37173a 100644 --- a/.nuget/NuGet.targets +++ b/.nuget/NuGet.targets @@ -59,7 +59,11 @@ BuildPackage; </BuildDependsOn> </PropertyGroup> - + + <Target Name="EnableRestore"> + <SetEnvironmentVariable EnvKey="EnableNuGetPackageRestore" EnvValue="true" /> + </Target> + <Target Name="RestoreBinaryDependencies"> <Exec Command='$(NuGetCommand) install StyleCop -source $(PackageSources) -o "$(PackagesDir)" -Version 4.7.10.0 > NUL' @@ -133,15 +137,9 @@ </ParameterGroup> <Task> <Using Namespace="System" /> - <Code Type="Fragment" Language="cs"> - <![CDATA[ - try { - Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process); - } - catch { - } - ]]> - </Code> + <Code Type="Fragment" Language="cs"><![CDATA[ + Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process); + ]]></Code> </Task> </UsingTask> </Project>
\ No newline at end of file |