从 msbuild 构建解决方案时未构建 Visual Studio 项目 [英] Visual Studio project not being built when I build Solution from msbuild

查看:60
本文介绍了从 msbuild 构建解决方案时未构建 Visual Studio 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 msbuild 构建了整个 Visual Studio 解决方案,它运行良好,但是当我构建整个解决方案时,有一个项目没有被构建

I build whole Visual Studio solution using msbuild, it worked fine but there is one project not being built when I build whole solution

这是我的 msbuild 脚本

This is my msbuild script

    <MSBuild Condition="'$(debug)' ==''"
             Projects="$(MySolution)"
             Targets="build"
             Properties="Configuration=Release">
      <Output TaskParameter="TargetOutputs"       ItemName="BuildOutput" />
    </MSBuild>

我需要在我的 Visual Studio 解决方案中检查这个特定项目吗?

Something I need to check on this specific project in my Visual Studio solution?

推荐答案

如果这是添加到解决方案中的新项目并且所有其他项目都正常构建,我的猜测是新项目尚未包含在解决方案配置中构建列表.在 VS 解决方案资源管理器中右键单击解决方案节点并打开配置管理器对话框,并确保在所有相关配置(调试、发布...)中检查您的新项目以进行构建,我正在谈论这个对话框:

If this is a new project added to a solution and all other projects are building fine, my guess is that the new project has not been included in the solution configuration build list. In VS Solution Explorer right click on the solution node and open the configuration manager dialog and make sure your new project is checked for build in all relevant configuration (Debug, Release...), I am talking about this dialog:

这篇关于从 msbuild 构建解决方案时未构建 Visual Studio 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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