博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nuget pack 时不包含依赖包(而不是引用项目的dll,区别于IncludeReferencedProjects)...
阅读量:5821 次
发布时间:2019-06-18

本文共 924 字,大约阅读时间需要 3 分钟。

Excluding development dependencies when creating packages

Some NuGet packages are useful as development dependencies, which help you author your own library, but aren't necessarily needed as actual package dependencies. Some examples are 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 will ignore <package> entries in the packages.config file which have an attribute developmentDependency set to true and will not include that package as a dependency in the created package. For example, consider the following packages.config file in the source project:

When running the pack command on this project, the created package will have a dependency on jQuery and microsoft-web-helpers, but will not have dependency on netfx-Guard.

转载于:https://www.cnblogs.com/atuo/p/4834889.html

你可能感兴趣的文章
MVCC浅析(转)
查看>>
Centos安装webbench
查看>>
TCP连接建立过程中为什么需要“三次握手”(转)
查看>>
Android 代码混淆、第三方平台加固加密、渠道分发 完整教程(转)
查看>>
攻破难啃的骨头-正则表达式(转)
查看>>
纳斯达克对经济泡沫的定义是:当交易价格远大于内在价值的时候,就称为泡沫(转)...
查看>>
《线性代数及其应用》目录
查看>>
linux下源码安装lamp环境[1]
查看>>
centos 管理之repair filesystem 修复
查看>>
navicat for mysql远程连接ubuntu服务器的mysql数据库
查看>>
代码整洁之道笔记(一)
查看>>
码本模型
查看>>
JAVA内存管理
查看>>
常用DOS命令
查看>>
基于AspNet Core2.0 开发框架,包含简单的个人博客Demo
查看>>
500.19和500.21错误的解决方法
查看>>
css3中的动画处理
查看>>
在 iSCSI Target 服务器中使用LVM创建和设置LUN(二)
查看>>
2.SpringMVC源码分析:DispatcherServlet的初始化与请求转发
查看>>
Linux下Tomcat的安装和部署
查看>>