当前位置:网站首页>C# Nuget离线缓存包安装
C# Nuget离线缓存包安装
2022-06-26 06:21:00 【596785154】
如果有网,添加NuGet里面的依赖项非常简单,搜索出来直接安装就行。
言归正传,还是来说说离线安装NuGet里面程序包依赖项的问题。
1
.去Nuget下载缓存包
https://www.nuget.org/ 这是NuGet官网,点进去,然后在搜索框里面搜你需要的安装包,以Dapper为例。
2 选择Dapper
3.点击选择一个版本,然后选择下载package
4.开 工具->NuGet程序包管理器->程序包管理器设置,找到NuGet程序包缓存的本地路径。如下图:

5 将下载的离线包放在缓存地址的文件夹里。
6 在项目中打开 工具->NuGet程序包管理器->控制台,并输入命令:Install-Package Dapper -Version 1.50.1,进行安装。
如果不起作用试试这个命令,把地址带上
Install-Package Dapper -Source C:\Users\Administrator\AppData\Local\NuGet\Cache
到这一步下面就会出现编译界面了。
基本上就能编译成功,把依赖包加入到项目中去了。
边栏推荐
- Usage of zip (*arg)
- Logstash——Logstash将数据推送至Redis
- Typora activation method
- 温度报警器
- 连接数服务器数据库报:错误号码2003Can‘t connect to MySQL server on ‘服务器地址‘(10061)
- Message queue - message transaction management comparison
- Web components series (10) -- realize the basic layout of mycard
- Introduction to the use of TS generics in functions, interfaces and classes
- Architecture design method
- The interviewer with ByteDance threw me an interview question and said that if I could answer it, other companies would have an 80% chance of passing the technical level
猜你喜欢

架构设计方法

Logstash - logstash pushes data to redis
Customer Stories | Netease spring breeze: the "spring breeze" of the fun industry, reaching out to all areas through in-depth interaction

Pytorch uses multi GPU parallel training and its principle and precautions

温度报警器

How to design a good technical scheme

Thread status and stop

Younger sister Juan takes you to learn JDBC -- two days' Sprint Day2

MVC source code sharing

Playing RTSP streaming video on Web pages (webrtc)
随机推荐
浏览器的四大内核:Trident,Gecko,Webkit,Blink
Zotero文献管理工具之Jasminum(茉莉花)插件
自顶向下的变成方法
TCP连接与断开,状态迁移图详解
Pytorch uses multi GPU parallel training and its principle and precautions
100 cases of go language
数据可视化实战:数据可视化
Alarm operation and Maintenance Center | build an efficient and accurate alarm collaborative processing system
A new paradigm for large model application: unified feature representation optimization (UFO)
Keepalived to achieve high service availability
Message queue - message transaction management comparison
事务与消息语义
消息队列-功能、性能、运维对比
DS18B20详解
Thinking and summary of technical ability
typescript的class结合接口(interface)的简单使用
Volatile application scenarios
MYSQL索引不生效的原因
MySQL-05
Getting to know concurrency problems