Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 1.62 KB

README.md

File metadata and controls

18 lines (14 loc) · 1.62 KB

NuGet.Build

This package includes NuGet.targets, which adds functionality to any solution to restore, update and build NuGet packages. The default behavior is to simply restore all NuGet packages if they are determined to be missing. This build script will also keep NuGet up to date automatically. See below instructions for other options.

These instructions assume a basic working knowledge of XML. All settings are controlled at an individual project level. To adjust settings, you should edit your project file with any text editor (not Visual Studio). Under the PropertyGroup tag, you will need to add the below listed tag with the appropriate value. Note, there will likely be multiple PropertyGroup tags. Be sure to use the one with the condition that you want, or use the one that has no condition attribute at all of you want the setting to apply for all configurations.

Tag NameValueFunction
RestorePackagesfalseDisables restoring packages
trueEnables restoring packages
updateRestores and keeps packages up to date
BuildPackagesfalseDisables building of packages
trueEnables building of packages (requires nuspec file in project)

Note: When using BuildPackages it is a good practice to use variables in your nuspec file for things such as version number. See the [NuSpec reference] (http://docs.nuget.org/docs/reference/nuspec-reference) for details on this practice.