【问题标题】:can build using visual studio ide but cannot build using devenv.com可以使用 Visual Studio IDE 构建,但不能使用 devenv.com 构建
【发布时间】:2011-04-01 15:35:46
【问题描述】:

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

类似的问题是here

有什么办法可以解决这个问题吗? 谢谢

编辑:实际上 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>

【问题讨论】:

  • 请不要让我们猜测您使用的命令行。

标签: visual-studio-2008 build-process cruisecontrol.net devenv


【解决方案1】:

您是否尝试过使用 MSBuild 任务而不是 VisualStudio?我在使用 MSBuild 时总是有更好的结果,尤其是因为这意味着您不需要在 Build Machine 上安装 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

如果需要 (see msdn article on MSBuild here),您可以将 v (Verbosity) 标志更改为更高的值以获得更多输出。

【讨论】:

  • 猜猜我也试过了,但我现在不记得了。现在我已将平台切换到 Mac,所以很遗憾我无法重试,但我希望您的回答对其他人有所帮助。感谢 Pondidum :)
【解决方案2】:

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

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

干杯,

塞巴斯蒂安

【讨论】:

  • yes devenv.com 成功构建了另一个解决方案。也许这与 .vdproj 项目有关。
猜你喜欢
  • 2018-09-23
  • 2019-07-31
  • 1970-01-01
  • 2018-11-04
  • 1970-01-01
  • 1970-01-01
  • 2014-12-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多