docker installation https://www.cnblogs.com/liuxiaoji/p/11014329.html
1. docker build private server Nuget
docker run -d -p 8085:80 -v /home/nuget/db:/var/www/db -v /home/nuget/packages:/var/www/packagefiles -e NUGET_API_KEY=ee28314c-f7fe-2550-bd77-e09eda3d0119 sunside/simple-nuget-server
Here NUGET_API_KEY environment variables to keep in mind the latter requires the use of a command
after a successful as shown below:
You need to create two mount directory name before docker execution
1 .db directory / home / nuget / db
2.packages目录 /home/nuget/packages
Create a directory command
mkdir /home/nuget/db
mkdir /home/nuge/packages
And specify the write access to the directory
chmod 666 /home/nuget
This time you will find no docker download very slow ctrl + c off the end of a docker mirror configuration accelerator
https://www.cnblogs.com/linjiqin/p/10813285.html
This time docker server deployment is complete
Add a test project
When setting the compiler automatically generates packet nuget
Change the version number according to their needs
And set up the event to ensure that each generation will repackage the latest nupkg
The meaning of this command is to delete all files ending .nupkg the current project path under / current output path
Right Project Rebuild
Open position where the project
Into the bin / debug directory
nuget package has been packed this time we need to be pushed to nuget server server
Push command dotnet nuget push
Reference official website: https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-nuget-push?tabs=netcore2x
dotnet nuget push *.nupkg -k ee28314c-f7fe-2550-bd77-e09eda3d0119 -s http://192.168.36.128:8085
But every time we push the trouble should write a custom menu to push vs
VS tool to select an external tool
Add Content
And save
Select Custom
2 behind the external command number is an index indicating a custom external commands
So choose off 2
Then the current project directory decentralization on our push.cmd file
Then we change the version number to regenerate
Right project will be more of our custom menu
vs package source configuration management nuge
nuget management