Build Nuget servers (2) and build nuget servers

Source: Internet
Author: User

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.

 

 

 

 

    

 

  

  

 

 

 

  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.