当前位置:网站首页>"Baget" takes you one minute to build your own private nuget server
"Baget" takes you one minute to build your own private nuget server
2022-07-26 14:09:00 【Hua Weiyun】

After reading this article, you can gain
- Use BaGet Quickly build Nuget Private warehouse
- The blogger will show you how to practice , No pit in the whole process
- Thank you for your kind words + Collection , Avoid missing next time ~

One 、BaGet brief introduction
BaGet It's a system built on ASP.NET Core Based on NuGet V3 Open source implementation of server .
github Address :
https://github.com/loic-sharma/BaGetrelease package :
https://github.com/loic-sharma/BaGet/releases


Two 、 Set it up
1. download Relese package
- Select a version above , What I'm using here is
v0.4.0-preview2The latest version
2. Run the project
Unzip the package , Then go to the directory

perform :
dotnet BaGet.dll

3. See the effect
Open it directly
http://localhost:5000/At this point, the private warehouse has been built

4. Custom run port
- edit
appsettings.jsonfile - Uncomment the contents of the red box , You can modify it.


3、 ... and 、 Upload Nuget package
1. Create a test project
- Type is class library

2. Packaging project
- Right click on the item , Choose to pack :

- After packaging, you will get a nupkg file

3. Upload package
- Open the command line under the above packaging directory to execute :
dotnet nuget push -s http://localhost:8080/v3/index.json MyTestLibrary.1.0.0.nupkg
4. Project reference
- stay VS Medium tool - Options -NuGet Package manager - Package source . Add a source , Enter a name , Source :http://localhost:8080/v3/index.json

- Nuget Switch the package set in the package to find

边栏推荐
- [mathematical modeling] summary of common basic models
- @A thousand lines of work, ride the cloud together!
- Circular queue (implemented in C language)
- C语言_结构体指针来访问结构体数组
- Redis learning notes
- How can red star Macalline design cloud upgrade the traditional home furnishing industry in ten minutes to produce film and television level interior design effects
- A survey of machine learning based technology term recognition
- UDP多线程在线聊天
- 基于标签嵌入注意力机制的多任务文本分类模型
- Meeting seating and submission for approval of OA project
猜你喜欢

JS download files, filesaver.js export txt and Excel files

C语言_结构体和数组的结合

gdb常用命令

MySQL-03 数据库操作

Leetcode215 the kth largest element (derivation of quick sort partition function)

.net6与英雄联盟邂逅之——根据官方LCU API制作游戏助手

Prediction and value evaluation of technology fusion relationship based on multiple features

Docker container MySQL enables binlog and scheduled backup

Integer internal cache

.net6 encounter with the League of heroes - create a game assistant according to the official LCU API
随机推荐
How to quickly design a set of cross end components that support rendering rich text content
Explain four interesting NPM usages with charts
Technology evolution analysis framework based on two-level topic model and its application
~6. ccf 2021-09-1 数组推导
~6. CCF 2021-09-1 array derivation
Meeting seating and submission for approval of OA project
JS submit the form to determine whether the user name and password are empty
Canvas upload image Base64 with cropping function jcrop.js
基于多特征的技术融合关系预测及其价值评估
C language_ Structure pointer to access structure array
Sequence traversal of binary tree (implemented in C language)
向路由组件传递参数
JS get the current time, time and timestamp conversion
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
基于SPO语义三元组的疾病知识发现
[NOIP2003 普及组]栈
Basic syntax of MySQL DDL and DML and DQL
@A thousand lines of work, ride the cloud together!
Docker swarm cluster builds highly available MySQL active and standby
POM file details




