运行 来自 visual studio 命令提示符的 nuget 包管理器控制台
Run nuget package manager console from visual studio command prompt
我正在寻找启动 visual studio 然后 运行 nuget 包管理器控制台中的一些命令的方法。
如何执行以下步骤:
- 打开visual studio(命令prompt/nogui/silent)
- 调用nuget更新语句:
Update-Package MyNamespace.MyProject -Version x.x.x
起初我尝试通过 nuget.exe 执行此操作,但似乎未执行 Install.ps1 脚本。 (http://blog.davidebbo.com/2011/05/thoughts-on-installing-and-updating.html)
NuGet FAQ 试图用“Can I use NuGet outside of Visual Studio?”问题来解决这个问题,但它没有满足您的要求。正如您所说,NuGet.exe 命令行不会 运行 您正在安装的软件包中包含的 powershell 脚本。
看来 NuGet 团队是 planning another route to support the new project.json project structure introduced by ASP.Net 5 / ASP.Net Core 1.0。
你或许可以使用SharpDevelop团队开发的this standalone set of powershell cmdlets,但我没试过,有点老了。但是,嘿,如果它有效的话! :)
我正在寻找启动 visual studio 然后 运行 nuget 包管理器控制台中的一些命令的方法。
如何执行以下步骤:
- 打开visual studio(命令prompt/nogui/silent)
- 调用nuget更新语句:
Update-Package MyNamespace.MyProject -Version x.x.x
起初我尝试通过 nuget.exe 执行此操作,但似乎未执行 Install.ps1 脚本。 (http://blog.davidebbo.com/2011/05/thoughts-on-installing-and-updating.html)
NuGet FAQ 试图用“Can I use NuGet outside of Visual Studio?”问题来解决这个问题,但它没有满足您的要求。正如您所说,NuGet.exe 命令行不会 运行 您正在安装的软件包中包含的 powershell 脚本。
看来 NuGet 团队是 planning another route to support the new project.json project structure introduced by ASP.Net 5 / ASP.Net Core 1.0。
你或许可以使用SharpDevelop团队开发的this standalone set of powershell cmdlets,但我没试过,有点老了。但是,嘿,如果它有效的话! :)