可以使用 Visual Studio IDE 构建,但无法使用 devenv.com 构建

发布于 2024-09-15 10:31:25 字数 827 浏览 3 评论 0原文

我正在使用 VS 2008。我可以使用 IDE 成功编译我的解决方案。但是,当我尝试使用 devenv.com 构建它时,它失败并提示“错误:找不到项目输出组'(无法确定名称)的输出”。该组、其配置或其项目可能已被删除从解决方案。”在构建 .vdproj 安装项目时。

类似的问题是这里

任何想法解决这个问题吗? 谢谢

编辑:实际上 Cruisecontrol.net 尝试使用 devenv.com 构建解决方案。这是我在 ccnet.config 中使用的 devenv 部分:

<devenv>
      <solutionfile>xxxxx.sln</solutionfile>
      <configuration>Debug</configuration>
      <buildtype>Build</buildtype>
      <executable>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com</executable>
      <buildTimeoutSeconds>60000</buildTimeoutSeconds>
      <version>VS2008</version>
    </devenv>

i'm using VS 2008. I can compile my solution using the IDE successfully. However, when I try to build it using devenv.com, it fails saying that "ERROR: Cannot find outputs of project output group '(unable to determine name)'. Either the group, its configuration, or its project may have been removed from the solution." while building a .vdproj setup project.

A similar problem is here

any ideas to fix this?
thx

Edit: Actually cruisecontrol.net tries to build the solution using devenv.com. Here is the devenv section i use in ccnet.config:

<devenv>
      <solutionfile>xxxxx.sln</solutionfile>
      <configuration>Debug</configuration>
      <buildtype>Build</buildtype>
      <executable>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com</executable>
      <buildTimeoutSeconds>60000</buildTimeoutSeconds>
      <version>VS2008</version>
    </devenv>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谁与争疯 2024-09-22 10:31:25

听起来您传递给 devenv.com 的命令行中的参数无效。

如果您使用简单的 hello world 项目创建一个新的解决方案,它可以正常工作吗?

干杯,

塞巴斯蒂安

It sounds like you have an invalid argument in the command line you pass to devenv.com.

Does it work ok if you create a new solution with a simple hello world project?

Cheers,

Sebastiaan

下壹個目標 2024-09-22 10:31:25

您是否尝试过使用 MSBuild 任务而不是 VisualStudio?我一直使用 MSBuild 获得更好的结果,特别是因为这意味着您不需要在构建计算机上安装 VisualStudio。

这是基于我使用的通用配置:

<msbuild>
    <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
    <workingDirectory>D:\dev\your\path\</workingDirectory>
    <projectFile>xxxx.sln</projectFile>
    <buildArgs>/v:m /noconlog /p:Configuration=Debug</buildArgs>
    <targets>Build</targets>
    <!--<logger>C:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger>-->
    <!-- If you dont have that logger for CruiseControl, you should try it :) -->
</msbuild>

如果这不起作用,您还可以从命令行运行它:

>cd "D:\dev\your\path\"
>D:
>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /v:m /p:Configuration=Debug xxxxx.sln

您可以更改 v (Verbosity) 标志如果需要,可以设置为更高的值以获得更多输出(请参阅此处有关 MSBuild 的 msdn 文章)。

Have you tried using the MSBuild task instead of VisualStudio? I have always had better results with MSBuild, especially as it means you do not need VisualStudio installed on your Build Machine.

Here is a generic config based off what I use:

<msbuild>
    <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
    <workingDirectory>D:\dev\your\path\</workingDirectory>
    <projectFile>xxxx.sln</projectFile>
    <buildArgs>/v:m /noconlog /p:Configuration=Debug</buildArgs>
    <targets>Build</targets>
    <!--<logger>C:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger>-->
    <!-- If you dont have that logger for CruiseControl, you should try it :) -->
</msbuild>

If this does not work, you can also run it from a command line:

>cd "D:\dev\your\path\"
>D:
>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /v:m /p:Configuration=Debug xxxxx.sln

You can change the v (Verbosity) flag to something higher to get more output if you need (see msdn article on MSBuild here).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文