将NuGet配置到环境变量中

https://docs.nuget.org/consume/command-line-reference

Installing

The NuGet command line may be installed onto a machine in a few possible ways.

  1. Direct download of the executable from https://dist.nuget.org/win-x86-commandline/latest/nuget.exe. The executable may be placed anywhere on the file system, and in most cases should be placed in a directory that is listed in the PATH environment variable.
  2. Install the NuGet.CommandLine package from the NuGet Visual Studio client and either move nuget.exe to a common location or execute it in the context of your project.
  3. Install the NuGet.CommandLine Chocolatey package using the Chocolatey client. More information on Chocolatey can be found at [http://chocolatey.org].

第一步:下载nuget.exe,然后把这个exe文件放到文件系统的任一位置,并确保这个位置,已经列在环境变量中了。 比如这个路径C:\Windows\    【但是千万不要放到system32下面】

第二步:打开VS,随便打开一个项目,解决方案上右键Manage Nuget Packages,选择Browse ,输入NuGet.CommandLine,最后选择最新的版本安装上

第三步:使用Chocolatey客户端安装NuGet.CommandLine  https://chocolatey.org/packages/NuGet.CommandLine

在此之前,还要安装https://chocolatey.org/install

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(2500)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2015-09-06 XtraForm中OfficeSkins以及BonusSkin皮肤的设置
2015-09-06 XtraForm中更换皮肤
2015-09-06 XtraForm默认皮肤的显示
2015-09-06 wcf异常汇总
2015-09-06 how to uninstall devkit
2015-09-06 asp.net中bin目录下的 dll.refresh文件
点击右上角即可分享
微信分享提示