NuGet文件标签中的可选或条件文件夹? [英] Optional or conditional folders in NuGet files tag?

查看:77
本文介绍了NuGet文件标签中的可选或条件文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做一些MsBuild要做的事情:设置.nuspec文件中引用的文件的条件.

I would like to do something that MsBuild has: set up conditions the files referenced in .nuspec file.

基本上看起来像这样:

<files>
  <file src="myFolder/aaa/*.dll" target="lib\net45" condition="!Exists('bestFolder')" />
  <file src="bestFolder/ccc/*.dll" target="lib\net45" condition="Exists('bestFolder')" />
</files>

有没有办法做到这一点?可以根据特定条件对文件夹和文件进行分组.另外请注意,如果存在某些文件夹,则应对其进行扫描.

Is there a way to do this? There can be several more folders and files grouped by a specific condition. Also note that some folders should be scanned if they exist.

谢谢, CssaBee

Thanks, CssaBee

推荐答案

否,目前,NuGet不支持此功能.您可以通过 https://nuget.codeplex.com/WorkItem/Create.

no, right now this is not supported by NuGet. You can file a feature request for NuGet at https://nuget.codeplex.com/WorkItem/Create.

这篇关于NuGet文件标签中的可选或条件文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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