The Visual Studio NuGet console could not find the package

Source: Internet
Author: User

A few days ago because of the company's project using the MVC4 framework, with VS2015 not convenient to add a controller, switch back to 2013. Using a feature that was not used for half a year is the NuGet console.

When I tried to install a package using the NuGet console command, I found out that there was such a bad egg.

Switch back to VS2015 try it, yo ah, incredibly can down. That must be VS2013 's problem.

No matter 3,721, immediately Google, Baidu, as well as the major groups of discussion of the method of inquiry ....

The result is still no answer .....

An unexpected idea reminds me that since the package is downloaded from NuGet, the inevitable configuration file is pointing to NuGet.

So I opened the following configuration page

There seems to be no error, but open the VS2015 contrast you will know. Oh hehe

The VS2015 configuration is as follows:

Copy the source path of the nuget.org to VS2013 in VS2015 (there are 200 words omitted from the operation procedure)

Re-execute the following command:

PM > Install-package JQuery

Found it so swift down. Resolved the ....

, to worship you.

Summary: About the Fix this problem, originally already uninstalled 2015 of me, and put back 2015 after the lazy uninstall. The discovery is not a machine problem at all. Finally think about a bit do not know is not VS2013 Update4 automatic upgrade Update5 caused, then VS2013 Update4 unloaded, and then installed VS2013 Update5. But I can't solve the mistake. From the forum also did not find a solution to the great God, and then his own touch of the crawl to climb out.

In order to write this blog, let other friends to help reproduce the problem, since I succeeded down the package, deleted the original new source address, NuGet has been able to be down successfully, do not know why! I hope someone is pointing out.

The Visual Studio NuGet console could not find the package

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.