可以使用visual studio ide构建,但无法使用devenv.com构建

时间:2010-08-20 12:45:12

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

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

类似的问题是here

要解决此问题的任何想法? THX

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

2 个答案:

答案 0 :(得分:0)

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

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

干杯,

Sebastiaan

答案 1 :(得分: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

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

相关问题