当前位置:网站首页>『BaGet』带你一分钟搭建自己的私有NuGet服务器
『BaGet』带你一分钟搭建自己的私有NuGet服务器
2022-07-26 14:05:00 【华为云】

读完这篇文章里你能收获到
- 使用BaGet快速搭建Nuget私仓
- 博主带你实操,全程无坑
- 感谢点赞+收藏,避免下次找不到~

一、BaGet简介
BaGet是一个构建于ASP.NET Core 基础上的 NuGet V3 服务器的开源实现。
github地址:
https://github.com/loic-sharma/BaGetrelease包:
https://github.com/loic-sharma/BaGet/releases


二、动手搭建
1. 下载Relese包
- 在上面选择一个版本,我这边使用的是
v0.4.0-preview2最新版本
2. 运行项目
解压包,然后进入到目录里面

执行:
dotnet BaGet.dll

3. 查看效果
直接打开
http://localhost:5000/到此私仓就搭建完成了

4. 自定义运行端口
- 编辑
appsettings.json文件 - 将红色框的内容取消注释,修改即可


三、上传Nuget包
1. 创建测试项目
- 类型为类库

2. 打包项目
- 右键项目,选择打包:

- 打包完成会得到一个nupkg文件

3. 上传包
- 在上面打包目录下打开命令行执行:
dotnet nuget push -s http://localhost:8080/v3/index.json MyTestLibrary.1.0.0.nupkg
4. 项目引用
- 在VS中工具-选项-NuGet包管理器-程序包源。添加一个源,输入名称,源:http://localhost:8080/v3/index.json

- Nuget包中切换程序包集即可搜索到

边栏推荐
- Why does WPS refuse advertising?
- Completable future practical usage
- Code cloud, which officially supports the pages function, can deploy static pages
- MySQL's practice of SQL analysis and optimization from the index principle
- MySQL-04 存储引擎和数据类型
- 多态案例-制作饮品
- Synchronization mechanism of go (sync.mutex)
- 基于多特征的技术融合关系预测及其价值评估
- My meeting of OA project
- 注解和反射
猜你喜欢

Technology evolution analysis framework based on two-level topic model and its application

Jzoffer (array; string; linked list)

Plato Farm有望通过Elephant Swap,进一步向外拓展生态

初识Opencv4.X----图像透视变换

基于机器学习的技术术语识别研究综述

PHP uses sqlserver

Sequence traversal of binary tree (implemented in C language)

使用cpolar建立一个商业网站(申请网站安全证书)

Pytoch learning notes (III) use, modification, training (cpu/gpu) and verification of the model

Redis learning notes
随机推荐
Technology evolution analysis framework based on two-level topic model and its application
.net6与英雄联盟邂逅之——根据官方LCU API制作游戏助手
POM文件详解
Multithreaded completable future usage
初识Opencv4.X----图像透视变换
大小端模式
ISCC2021 LOCKK题解
GDB common commands
基于机器学习的技术术语识别研究综述
Code cloud, which officially supports the pages function, can deploy static pages
How to quickly design a set of cross end components that support rendering rich text content
聚力打造四个“高地”,携手合作伙伴共铸国云!
在检测分割中一些轻量级网络模型(自己学习的笔记分享)
注解和反射
DP sword finger offer II 100. sum of minimum paths in triangle
Research on prediction of user churn in online health community based on user portrait
Re bet overseas: Alibaba, jd.com and SF again fight for "internal power"
基于用户画像的在线健康社区用户流失预测研究
Ros2 learning (1) introduction to ros2
Circular queue (implemented in C language)




