我得到了CC.Net和NAnt(和MSBuild)在基於虛擬機的新構建服務器(Win7-64 Pro)上運行。NAnt + MSBuild(4.0)== MSBuild啓動失敗w /目錄未找到錯誤
CC.Net可以調用MSBuild就好 - 但在處理項目範圍構建時遇到問題。條件只是沒有我需要的。差遠了。
所以我決定通過用NAnt調用MSBuild來處理這些情況,NAnt每次都會失敗。當我從命令提示符腳本楠,我得到這個:
[loadtasks] Failure scanning "C:\nant\bin\extensions\common\2.0\Collection
Gen.dll" for extensions. Could not load file or assembly 'Microsoft.VSDesigner,
Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies. The system cannot find the file specified.
Buildfile: file:///c:/c7/projects/dyndata/dyndata.build
Target framework: Microsoft .NET Framework 4.0
Target(s) specified: build
build:
[loadtasks] Scanning directory "c:\nantcontrib\bin\lib" for extension assemblies
.
[echo] Building DynData v7.0.7
BUILD FAILED
c:\c7\projects\dyndata\dyndata.build(24,12):
Failed to start MSBuild.
c:\c7\projects\dyndata\dyndata.build(24,12):
External Program Failed: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbui
ld.exe (return code was 1)
Total time: 0.4 seconds.
c:\c7\projects\dyndata\dyndata.build(24,12):
Failed to start MSBuild.
c:\c7\projects\dyndata\dyndata.build(24,12):
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe' failed to start.
The directory name is invalid
的設計組件存在這臺機器,其中有VS2010專業安裝它。 構建文件夾是正確的。 框架文件夾是正確的。 對nant/msbuild和此消息進行的超級搜索沒有任何實質性內容。
這些項目已嘗試和失敗,改變結果:
Nant msbuild task with .net 4.0 rc
.NET projects build automation with NAnt/MSBuild + SVN(壽我使用的庫)
我試圖建立的惡性代碼,所以我可以調試問題通過VS2010的調試器,但源項目是一個不可行的混亂,甚至不會開始建立。
想法,歡迎:)
Daddyman,這是啓動MSBuild的nant代碼。我已經嘗試了當前的alpha,以及.85(和它們匹配的nantcontrib)。 \t <屬性名= 「配置」 的值= 「調試」/> \t <屬性名= 「平臺」 值= 「86」/> \t <屬性名= 「ClarionBinPath」 值= 「C:\ C7 \ BIN \」/> \t –
2011-01-14 14:40:25