This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13196|Reply: 3

[Source] Practical Operation: Use ProGet to build a NuGet private repository

[Copy link]
Posted on 2/27/2022 5:38:48 PM | | | |
ProGet is a commercial private repository software, it has a free version and a paid version, it is actuallyNot only does it support managed NuGet packages。 I have also written two articles on building a private NuGet repository before, as follows:

Nuget Series 1 uses asp.net to build a private Nuget repository
https://www.itsvse.com/thread-9368-1-1.html

Nuget Series 2 uses BaGet to build private Nuget services
https://www.itsvse.com/thread-9380-1-1.html
ProGet supports multiple sources, including:NuGet, PowerShell, Docker, Ruby Gems, VSIX, Chocolaty, npm, Bower, Maven, PyPI, Debian, and Helm

ProGet Edition License Restrictions:The hyperlink login is visible.

This article uses Docker to install ProGet on a CentOS system. First, the steps to install Docker on the CentOS system are as follows:


Install Docker containers on CentOS 7
https://www.itsvse.com/thread-9999-1-1.html
The installation of ProGet also requires a SQL Server database, the installation steps are brief, you can refer to the following:

Deploy SQL Server 2019 database on Docker
https://www.itsvse.com/thread-10186-1-1.html
After installing the database service, you need to create a ProGet database, connect to the database using Microsoft SQL Server Management Studio 18, and execute the following command:

Create a ProGet container using Docker with the following command:

Reference Documentation:The hyperlink login is visible.

Once the installation is complete,The default account and password are: admin/admin, as shown in the figure below:




Create a feed with the name: itsvse, as shown below:



Create an API Keys, it will be convenient for us to push the nuget package through the API Key, as shown in the figure below:



Create a new .NET Core 3.1 library, edit the project .csproj file (include the PDB file in the NuGet package), and add the following:

Try to generate a nuget package using dotnet with the following command:

Package metadata configuration reference:The hyperlink login is visible.



Go to the bin\Debug directory,Push the nuget package to the ProGet repository, the command is as follows:



Finally, open the VS tool and add the NuGet source configuration as follows:



About symbols and source server references:The hyperlink login is visible.

(End)




Previous:Java about overriding toString() methods
Next:CentOS 7 prohibits an IP from accessing the server
Posted on 2/28/2022 7:54:06 PM |
I'm here to learn again.
Posted on 3/1/2023 4:19:35 PM |
Learn from it, thanks for sharing
 Landlord| Posted on 8/7/2025 1:08:57 PM |
Error NU1302 is running a "restore" operation over an "HTTP" source http://itsvse:8081/repository/nuget-group/index.json. NuGet requires an HTTPS source. To use HTTP sources, you must explicitly set "allowInsecureConnections" to true in the NuGet.Config file. For more information, seehttps://aka.ms/nuget-https-everywhere

solution
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com