Optional or conditional folders in NuGet files tag?

谁说我不能喝 提交于 2019-12-10 13:33:53

问题


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

Basically it would look like this:

<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.

Thanks, CssaBee


回答1:


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



来源:https://stackoverflow.com/questions/24804112/optional-or-conditional-folders-in-nuget-files-tag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!