Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Mar 31, 2020

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.

@jpobst jpobst requested a review from jonpryor March 31, 2020 15:03
@jonpryor jonpryor merged commit 80b4667 into master Apr 1, 2020
@jonpryor jonpryor deleted the new-nuget branch April 1, 2020 22:03
@jpobst jpobst added this to the d16-7 milestone Apr 10, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants