blob: 0c2917d477494e274453c0f3b2ea1be2882b24fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Custom task to download files -->
<!-- Nuget executable -->
<PropertyGroup>
<!-- Use NuGet 5.4.0 more recent versions (5.6.0) fails with Visual Studio 2010 -->
<NugetExe>$(MSBuildThisFileDirectory)NuGet-5.4.0.exe</NugetExe>
<NugetURL>https://dist.nuget.org/win-x86-commandline/v5.4.0/nuget.exe</NugetURL>
</PropertyGroup>
<!-- Download nuget.exe if not present -->
<Target Name="GetNuget" Condition="!Exists('$(NugetExe)')">
<Exec Command="powershell -ExecutionPolicy ByPass -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;(New-Object Net.WebClient).DownloadFile('$(NugetURL)', '$(NugetExe)')""/>
</Target>
</Project>
|