Upload
learningtech
View
439
Download
4
Embed Size (px)
Citation preview
NUGET -DEVELOPMENT-
ONLY DEPENDENCIES
By Anney
04/12/2023 2
Question
• How to exclude development dependencies
04/12/2023 3
Development-Only Dependencies
• One of Nuget 2.7 Release Notes
• This feature was contributed by Adam Ralph and it allows package authors to declare dependencies that were only used at development time and don't require package dependencies. By adding a developmentDependency="true" attribute to a package in packages.config, nuget.exe pack will no longer include that package as a dependency.
04/12/2023 4
Development-Only Dependencies(2)
04/12/2023 5
References
• http://docs.nuget.org/docs/release-notes/nuget-2.7#Development-Only_Dependencies
• http://docs.nuget.org/docs/reference/command-line-reference#Excluding_development_dependencies_when_creating_packages
04/12/2023 6
~ THE END ~