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.