Restore-NuGet-Packages always looking for 'Microsoft.Build, Version=14.0.0.0'
See original GitHub issueCake is always looking for MSBuild 14.0.0 when I do restore my Nuget-Packages. How can I change It to use MSBuildToolVersion.VS2013?
What You Are Seeing?
Error when the Restore Nuget Package block runs. When I take out this step from the code Build runs.
What is Expected?
I expect that the Restore step works.
What version of Cake are you using?
0.17.0
Are you running on a 32 or 64 bit system?
64 bit
What environment are you running on? Windows? Linux? Mac?
Windows 7
Are you running on a CI Server? If so, which one?
No
How Did You Get This To Happen? (Steps to Reproduce)
build.ps1
Output Log
========================================
Restore-NuGet-Packages
========================================
Executing task: Restore-NuGet-Packages
Failed to load msbuild Toolset
Não foi possível carregar arquivo ou assembly 'Microsoft.Build, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f
5f7f11d50a3a' ou uma de suas dependências. O sistema não pode encontrar o arquivo especificado.
An error occurred when executing task 'Restore-NuGet-Packages'.
Error: NuGet: Process returned an error (exit code 1).
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Cake NuGetRestore always wants MSBuild14?
What you could try is to use the MSBuild alias with the restore target, latest version of MSBuild should have build in NuGet...
Read more >Troubleshooting NuGet Package Restore in Visual Studio
Package Restore tries to install all package dependencies to the correct state matching the package references in your project file (.csproj) or ...
Read more >NuGet Package Restore
See an overview of how NuGet restores packages a project depends on, including how to disable restore and constrain versions.
Read more >restore command (NuGet CLI)
The restore command performs the following steps: Determine the operation mode of the restore command. ... Determine the packages folder using the ...
Read more >Nuget restore - system cannot find file - Microsoft.Build. ...
Everytime I try to run Nuget restore I get this error. I get on another server that I am trying to put a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@patriksvensson and @devlead I’m trying to change the NuGet.exe, I have it at the root of the solution, because I enabled NuGet package restore, but It’s not working. Which parametter I should set?
Same output as error, still trying MsBuild 14:
You can set this via NuGetRestoreSettings http://cakebuild.net/api/cake.common.tools.nuget.restore/71880157 passed to the restore command http://cakebuild.net/api/cake.common.tools.nuget/bdfa6572/256fc700