NuGet pack does not contain dependent packages (instead of referencing the project's DLL, which differs from includereferencedprojects)

Source: Internet
Author: User

Excluding development dependencies when creating packages

Some NuGet Packages is useful as development dependencies, which help you author your own library, but aren ' t necessarily Needed as actual package dependencies. Some examples is code-based packages or tooling packages that don ' t provide assemblies your package needs to reference at Runtime. Starting from version 2.7, the pack command would ignore <package> entries in the Packages.config file which has an Attribute developmentdependency set to true and would not include this package as a dependency in the CRE Ated package. For example, consider the following packages.config file in the source project:

<?xml version="1.0" encoding="utf-8"?><packages>    <package id="jQuery" version="1.5.2" />    developmentDependency="true" />    <package id="microsoft-web-helpers" version="1.15" /></packages>

When running-The pack command on this project, the created package would have a dependency on jQuery and Micro Soft-web-helpers, but would not have the dependency on netfx-guard.

NuGet pack does not contain dependent packages (instead of referencing the project's DLL, which differs from includereferencedprojects)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.