如何从MSBUILD中的构建中排除项目? [英] How to exclude project from build in MSBUILD?

查看:145
本文介绍了如何从MSBUILD中的构建中排除项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要构建一个解决方案,但要排除一个项目.我该怎么办?我搜索了很多有关此问题的内容,但无济于事.

I need to build a solution but exclude one project. How should I do it? I searched a lot about this issue but nothing could help.

ItemGroup 部分出现以下异常:

无效的元素.未知的任务或数据类型.

PropertyGroup 也会引发异常.

下面是我的代码示例:

<project name="TI 8.1.6 build script">
  <ItemGroup>
    <Solution Include="${ROOT}\Core\TI Core.sln" Exclude="${ROOT}\Utilities\DTS Indexing Service\Tdi.Origami.IndexUpdaterServiceSetup\Tdi.Origami.IndexUpdaterServiceSetup.wixproj"/>
  </ItemGroup>
...
</project>

那么有人可以帮助我吗?

So could anyone help me?

推荐答案

对于特定的

然后,您可以简单地在解决方案文件上调用msbuild,指定要使用的构建配置:

Then you can simply invoke msbuild on the solution file specifying the build configuration to use:

msbuild /property:Configuration=Release MySolution.sln

这篇关于如何从MSBUILD中的构建中排除项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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