Build Nuget servers (2) and build nuget servers
The reason why I wrote these parts separately is that I encountered several problems during the construction process today. I would like to mention it to save you some time (after all, my life is too short, if you are idle, please give me your GUID and I will give you a few bottles of wind oil ).
NugetServer Web site construction
Directly go to ide (my name is vs2012) and have a good eye (if you don't want to have a crush on it) (directly, don't ask why, because I am a lazy person)
Click "Install ". Wait a moment .....
Select "all. Do you feel so easy (Where Can't you catch your feet?), don't be so happy too early (it's time to keep your chrysanthemum busy)
Fuck, shit .... Oh, no ........... Let's take a look at the error...
It turns out that nuget. server cannot be found. I am prompted that I have successfully installed it .....
Calm down. Now that we know the cause is that we cannot find nuget. server, let's take a look at the nuget. server version.
The default is 2.11.2 (take a look at this version of the description http://www.nuget.org/packages/NuGet.Server)
How can this problem be solved? Don't worry, hurry up and look down...
Since it is a version, is it possible to select a lower version of nuget. server? Bingo, start ........
Here I use nuget. server 1.8 (projectname is the project name)
Install-Package Nuget. Server-ProjectName NugetServer-Version 1.8
Is there no way to go without any doubt? You can run it to see the effect.
I wiped it. webconfig has an error. Your sister, don't worry (you can't get a girl in a hurry ...)
Yes. Remove this line.
OK. You can publish it to a website. The domain name I published here is (nuget.lantinit.com). Here we need to solve it by adding it to the hosts file (127.0.0.1 nuget.lantinit.com ). By the way, we recommend a small software (SwitchHosts is used for hard solution, and the white point is to modify the hosts file ).
As always, if you have any questions, please leave a message and you will be able to reply in time.