nuget install exit code 9009

前端 未结 2 1016
臣服心动
臣服心动 2020-12-06 16:48

When build my solution, I got an error:

Error 116 The command \"nuget install “C:\\Mycode\\Test\\some\\ClassLibs\\WCF\\ServiceHosts\\Monitor\\packages

2条回答
  •  失恋的感觉
    2020-12-06 17:14

    Error 9009 means that Visual Studio cannot find an executable - typically one used in a pre or post build step. In this instance, it seems that NuGet is the source of the problem.

    Is it possible that you are using a solution that manages dependencies using NuGet (and probably has the "Enable NuGet package restore" option enabled), but you haven't yet loaded the NuGet extension into Visual Studio 2012?

    To confirm if this is the case, go to the Tools menu, and click "Extensions and Updates", select installed and type nuget Return into the search box at the top right corner of the Extensions and Updates form. If it's installed, you should see it listed with a version number - for example 2.4.40116.9051 which I believe is the most recent release as I type this. If you don't find it, select "online" from the list on the left hand side of the Extensions and Updates form. Locate the NuGet Package Manager entry (quite possibly the first item on the list) and click "download" to grab it.

提交回复
热议问题