July 2017
Beginner
466 pages
9h 37m
English
When you create a NuGet package, you can specify which dependencies your package should refer and download automatically. You can define it using the <dependency> tag inside the <dependencies> tag under <metadata>. When installing or reinstalling the package, NuGet downloads the exact version of the dependency specified in the nuspec file by default:
<?xml version="1.0"?> <package > <metadata> <id>Demo.Packt.Kunal.NuGetDemoLibrary</id> <version>1.0.0-alpha</version> <title>NuGet Demo Library</title> <authors>Kunal Chowdhury</authors> <owners>WinLab</owners> <description>This is for demo purpose only</description> <releaseNotes>Change 1, Change 2, ...</releaseNotes> <copyright>Copyright 2017</copyright> ...
Read now
Unlock full access