cake-build / cake-build/cake

NugetRestore not working with Nuget 4 and NuGetMSBuildVersion.MSBuild15

Open
#1,601 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.