3

我正在使用 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>
4

2 回答 2

0

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

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

干杯,

塞巴斯蒂安

于 2010-08-20T13:02:48.253 回答
0

您是否尝试过使用 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

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

于 2011-03-28T15:43:55.797 回答