VS automatically downloads NuGet-managed libraries during compilation, vs compiles nuget

Source: Internet
Author: User

VS automatically downloads NuGet-managed libraries during compilation, vs compiles nuget

Previously, NuGet has been used to manage some third-party libraries. However, each check in code must be checked in to ensure that the compilation is passed.

It is time-consuming, especially to synchronize code to github, and these libraries are available on NuGet, so there is no need to check in.

At the request of a large number of people, NuGet began to support automatic synchronization of the corresponding packages at compilation in version 2.0. However, in versions 2.0-2.6, automatic download is not selected by default. After version 2.7, automatic download is selected by default.

1. Set automatic download

Ii. Enable NuGet restore

Right-click solution

The final effect is as follows:

After the configuration is complete, every time the project is compiled, the Build Task checks the packages in the project. whether the library in the config file is in the packages folder. If not, it is automatically downloaded and decompressed to the packages folder.

During the download process, NuGet checks the corresponding version and does not automatically upgrade it.


How does vs2008 compile the debug and release of the dependent libraries?

Select debug or release in the Configuration Manager

What is the C language compiler and library for beginners?

Gcc is commonly used. You can use mingw or install eclipse.
You can also use the ms compiler to install.

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.