Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/.nuget
diff options
context:
space:
mode:
authorbradwilson <dotnetguy@gmail.com>2012-07-18 23:00:43 +0400
committerbradwilson <dotnetguy@gmail.com>2012-07-18 23:09:02 +0400
commiteecfe803d31d887a2ee54cbce95d23721103f911 (patch)
tree7089f90498bcea1e52a6fa86d6bc2ab697b6aa93 /.nuget
parent44b53cd4dd84db8c47e00397de7538ac29f7b4f8 (diff)
Tweak package restore algorithm
Diffstat (limited to '.nuget')
-rw-r--r--.nuget/NuGet.targets18
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