You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build will run nuget.exe restore C:\dev\github\NuGetGallery\NuGetGallery.sln -MSBuildVersion 14 command
This will fail with error Cannot find the specified version of msbuild: '14'
Other suggested things
NuGet Docs says that -MSBuildVersion supports values 4, 12, 14 and 15. I have Visual Studio 2015 installed so NuGet should work with version 14.
Workarround: using version '14.0' will use the correct MSBuild toolset, eg. nuget.exe restore C:\dev\github\NuGetGallery\NuGetGallery.sln -MSBuildVersion 14.0
Verbose Logs
C:\dev\github\NuGetGallery\.nuget\nuget.exe restore C:\dev\github\NuGetGallery\NuGetGallery.sln -MSBuildVersion 14 -Verbosity detailed
NuGet Version: 4.0.0.2275
System.AggregateException: One or more errors occurred. ---> NuGet.CommandLine.CommandLineException: Cannot find the specified version of msbuild: '14'
at NuGet.CommandLine.MsBuildUtility.GetToolsetFromUserVersion(String userVersion, IEnumerable`1 installedToolsets)
at NuGet.CommandLine.MsBuildUtility.GetMsBuildDirectoryInternal(String userVersion, IConsole console, IEnumerable`1 installedToolsets, Func`1 getMsBuildPathInPathVar)
at NuGet.CommandLine.MsBuildUtility.GetMsBuildDirectory(String userVersion, IConsole console)
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at NuGet.CommandLine.RestoreCommand.ProcessSolutionFile(String solutionFileFullPath, PackageRestoreInputs restoreInputs)
at NuGet.CommandLine.RestoreCommand.<DetermineRestoreInputsAsync>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__30.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at NuGet.CommandLine.Command.Execute()
at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)
---> (Inner Exception #0) NuGet.CommandLine.CommandLineException: Cannot find the specified version of msbuild: '14'
at NuGet.CommandLine.MsBuildUtility.GetToolsetFromUserVersion(String userVersion, IEnumerable`1 installedToolsets)
at NuGet.CommandLine.MsBuildUtility.GetMsBuildDirectoryInternal(String userVersion, IConsole console, IEnumerable`1 installedToolsets, Func`1 getMsBuildPathInPathVar)
at NuGet.CommandLine.MsBuildUtility.GetMsBuildDirectory(String userVersion, IConsole console)
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at NuGet.CommandLine.RestoreCommand.ProcessSolutionFile(String solutionFileFullPath, PackageRestoreInputs restoreInputs)
at NuGet.CommandLine.RestoreCommand.<DetermineRestoreInputsAsync>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__30.MoveNext()<---
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. We have not been able to reproduce this issue. If you are still able to reproduce this with the latest NuGet version, please provide additional steps.
Details about Problem
NuGet product used: NuGet.exe
NuGet version: 4.0.0.2275
VS version: Visual Studio 2015 Professional, Update 3
OS version (i.e. win10 v1607 (14393.321)): win10-pro v1607 (14393.693)
Detailed repro steps so we can see the same problem
v2017.02.24
.\build.cmd
nuget.exe restore C:\dev\github\NuGetGallery\NuGetGallery.sln -MSBuildVersion 14
commandOther suggested things
NuGet Docs says that
-MSBuildVersion
supports values 4, 12, 14 and 15. I have Visual Studio 2015 installed so NuGet should work with version 14.Workarround: using version '14.0' will use the correct MSBuild toolset, eg.
nuget.exe restore C:\dev\github\NuGetGallery\NuGetGallery.sln -MSBuildVersion 14.0
Verbose Logs
The text was updated successfully, but these errors were encountered: