3

我使用VS 2008.我可以使用IDE成功編譯我的解決方案。但是,當我嘗試使用devenv.com構建它時,它失敗地說「錯誤:無法找到項目輸出組的輸出(無法確定名稱)'。組,其配置或其項目可能已被刪除從解決方案。「同時構建.vdproj安裝項目。可以使用Visual Studio IDE構建,但無法使用devenv.com構建

類似的問題是here

任何想法解決這一問題? thx

編輯:其實cruisecontrol.net試圖使用devenv.com構建解決方案。這裏是devenv的第一節中的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> 
+1

請不要讓我們猜你在使用的命令行。 – 2010-08-20 14:21:31

回答

0

這聽起來像你對你傳遞給devenv.com命令行無效參數。

如果您使用簡單的Hello World項目創建新解決方案,它可以正常工作嗎?

乾杯,

Sebastiaan

+0

yes devenv.com成功構建了另一個解決方案。也許這與.vdproj項目有關。 – aslisabanci 2010-08-20 13:46:02

0

您是否嘗試過用MSBuild任務,而不是VisualStudio的?我一直對MSBuild有更好的結果,尤其是因爲它意味着你不需要在Build Machine上安裝VisualStudio。

這是基於一個通用的配置關我用:

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

可以更改v

<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> 

如果這不起作用,你也可以通過命令行運行(Verbosity)標誌更高以獲得更多的輸出,如果你需要(see msdn article on MSBuild here)。

+0

猜猜我也嘗試過,但我現在完全記不清了。現在我已將平臺切換到Mac,所以不幸的是我無法重新嘗試,但我希望您的答案能夠幫助其他人。 Thx Pondidum :) – aslisabanci 2011-03-29 07:21:58

相關問題