当前位置:网站首页>"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

边栏推荐
猜你喜欢

JS page turning, kkpager.js page turning

基于SPO语义三元组的疾病知识发现

Explain four interesting NPM usages with charts

404 pages and routing hooks

MySQL's practice of SQL analysis and optimization from the index principle

Plato farm is expected to further expand its ecosystem through elephant swap

Tdsql-c serverless: help start-ups achieve cost reduction and efficiency increase

MySql的DDL和DML和DQL的基本语法

12437 words, take you to explore the principle of RPC communication

Leetcode36 effective Sudoku
随机推荐
Canvas upload image Base64 with cropping function jcrop.js
Flink SQL (III) connects to the external system system and JDBC
PHP uses sqlserver
注解和反射
大小端模式
Comparison between agile development and Devops
First knowledge of opencv4.x --- image perspective transformation
MySql的DDL和DML和DQL的基本语法
[noip2003 popularity group] stack
[paper reading] raw+:a two view graph propagation method with word coupling for readability assessment
A survey of machine learning based technology term recognition
二叉树的层序遍历(C语言实现)
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
消息的订阅和发布
Detailed explanation of alter field of MySQL Foundation
Latest battle report: Ten certifications and five best practices
Book download | introduction to lifelong supervised learning in 2022, CO authored by meta AI, CMU and other scholars, 171 Pages pdf
在检测分割中一些轻量级网络模型(自己学习的笔记分享)
基于双层主题模型的技术演化分析框架及其应用
Technology sharing | gtid that needs to be configured carefully_ mode




