It seems that once you use NuGet, the project files become very large. Do these package files need version control? Should I include it when sharing the source code?
大家讲道理2017-05-02 09:27:49
These package files themselves do not need to enter your own repository, but the metadata of these packages need to enter your repository.
You will find that after installing the library through NuGet, there will usually be a packages.config file in your project directory. This file will contain the metadata of the library you installed (such as library ID, library version, etc.)
For example:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="WriteableBitmapEx" version="1.5.0.0" targetFramework="net45" />
</packages>
Just synchronize this to version management. After cloning from the code base, vs will read this file and automatically download all the NuGet libraries that are missing in the installation project and recorded in packages.config.