Skip to content

Commit 80b4667

Browse files
authored
[PrepareWindows] Bump to use NuGet.exe 5.4.0 (dotnet#618)
The version of `NuGet.exe` that is downloaded during `msbuild Java.Interop /t:Prepare` on Windows is unable to load all the needed assemblies in order to complete a restore: C:\code\xamarin-android\external\Java.Interop\build-tools\scripts\..\..\.nuget\NuGet.exe restore Java.Interop.sln MSBuild auto-detection: using msbuild version '16.6.0.15501' from 'C:\Program Files (x86)\Microsoft Visual Studio\201 9\Preview\MSBuild\Current\bin'. Error parsing solution file at C:\code\xamarin-android\external\Java.Interop\Java.Interop.sln: Exception has been thrown by the target of an invocation. The project file could not be loaded. Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\code\xamarin-android\external\Java.Interop\Java.Interop.sln This is fixed by updating to a newer version of NuGet: 5.4.
1 parent c0948d2 commit 80b4667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools/scripts/PrepareWindows.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<_TopDir>$(MSBuildThisFileDirectory)..\..</_TopDir>
6-
<_NuGetUri>https://dist.nuget.org/win-x86-commandline/v4.7.1/nuget.exe</_NuGetUri>
6+
<_NuGetUri>https://dist.nuget.org/win-x86-commandline/v5.4.0/nuget.exe</_NuGetUri>
77
<_NuGetPath>$(_TopDir)\.nuget</_NuGetPath>
88
<_NuGet>$(_NuGetPath)\NuGet.exe</_NuGet>
99
</PropertyGroup>

0 commit comments

Comments
 (0)