NugetRestore not working with Nuget 4 and NuGetMSBuildVersion.MSBuild15
- Dominant language
- C#
- Stars
- 4.2k
- Forks
- 778
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 19
Description
I have `$NUGET_EXE` pointing to nuget v4.1.0.
```
NuGetRestore("sln.sln", new NuGetRestoreSettings {
MSBuildVersion = NuGetMSBuildVersion.MSBuild15
});
```
outputs
```
Cannot find the specified version of msbuild: '15'
An error occurred when executing task 'Restore'.
```
There is related [SO answer](http://stackoverflow.com/questions/43128897/cake-nugetrestore-always-wants-msbuild14#comment73403182_43129179).
Contributor guide
Research direction
Start with the NuGetRestore call and its NuGetRestoreSettings.MSBuildVersion option, using the reported NuGet 4.1.0 and NuGetMSBuildVersion.MSBuild15 reproduction. Trace how the MSBuild version is resolved and check existing restore tests or entry points. Done means the reported restore completes without the "Cannot find the specified version" error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100