为具有多个项目的解决方案创建nuget软件包 [英] Create nuget package for a solution with multiple projects

查看:237
本文介绍了为具有多个项目的解决方案创建nuget软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们正在建立一个包含多个项目的解决方案。

   - 通用
- 记录
- Logging.NLog
- 线程

所以Logging.NLog依赖于Logging,Logging on Common ...等。



当我们打包Logging.NLog时,我想nuget发现Loggin and Common依赖。



此刻,我创建了一个包含Common的包,然后在Logging中,我安装了包含

$ b的包
$ b

  install-package Common 

但是,当我对Common进行修改时,我必须更新该软件包,它们是由我们的连续集成系统(Hudson)创建的,所以当我们正在开发时,这是非常烦人的。


$ b $我想要一个项目参考(添加参考 - >项目...),nuget发现依赖关系。



有没有办法实现它?

解决方案

有计划的 >功能



这是它的显示方式:

 > nuget.exe包proj.csproj -IncludeReferencedProjects 

它显然是实施只是之前,但有错误 仍然 熨烫 out



该功能目前是支持的:




  • 将几个项目的工件打包成一个单一的nuget包(递归地走走项目参考),



OR




  • 创建 nuget包引用这些项目的关联包,如果引用的项目伴随.nu​​spec文件。



请求一直追溯到1.5,但它一直在滑倒。最近,它收集了足够的质量(请求),以便在 Nuget 2.3 中发布。



发布计划钉入2.3版2013年4月底,请继续关注。

(目前,最新的Nuget版本是2.2.1)。


We are currently building a solution with several projects.

We have something like this:

- Common
  - Logging
     - Logging.NLog
- Threading

So Logging.NLog is dependant on Logging, Logging on Common...etc.

When we pack Logging.NLog I would like nuget to discover the Loggin and Common dependecies.

At the moment, I created a package with Common, then in Logging I installed the package Common with

install-package Common

But whenever I do a modification to Common, I have to update the package and they are created by our continous integration systeme (Hudson), so it is pretty annoying when we are developing.

I would like to simply have a Project Reference (Add References -> Project...) and the nuget discover the depencies anyway.

Is there a way to achieve it?

解决方案

There is a planned feature targeting this exact scenario.

This is how it will apparently look like:

> nuget.exe pack proj.csproj -IncludeReferencedProjects

It has apparently been implemented mere days ago, but there are bugs still being ironed out.

The feature, as it currently stands, allows:

  • packaging several projects' artifacts into a single nuget package (by walking project references recursively),

OR

  • creating nuget package references to those projects's associated packages, if the referenced projects have accompanying .nuspec files.

The feature request dates back all the way to 1.5, but it kept slipping. Recently though, it gathered enough mass (requests) to be scheduled for release in Nuget 2.3.

The release plan pegs version 2.3 for "End of April, 2013" so stay tuned.
(Presently, the latest Nuget version is 2.2.1).

这篇关于为具有多个项目的解决方案创建nuget软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆