简体   繁体   English

在不使用Visual Studio的情况下将nuget包添加到项目文件中

[英]Add nuget package into project file without Visual Studio

I am looking for solution to add/update new nuget packages to exiting project file .csproj but without Visual Studio. 我正在寻找解决方案以添加/更新新的nuget包到现有的项目文件.csproj,但没有Visual Studio。 I gone this post here it download package it on local machine. 我在这里发布了这篇文章 ,将其下载到本地计算机上。 But we want same process that Visual Studio do 但是我们想要与Visual Studio相同的过程

  1. Download dll 下载dll
  2. Add reference in project file 在项目文件中添加参考
  3. update package.config file 更新package.config文件

Is it possible that I can achieve this outside Visual Studio? 我可以在Visual Studio之外实现这一目标吗?

This should be possible using Nuget.exe and the install-package etc. Powershell cmdlets. 使用Nuget.exe和install-package等。Powershellcmdlet应该可以实现。 See the blog post Installing NuGet Packages outside of Visual Studio for details! 有关详细信息,请参见博客文章在Visual Studio外部安装NuGet软件包

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM