2011-04-29 131 views
1

我正在嘗試爲BizTalk 2010項目設置生成服務器。我只安裝了BTS 2010 Enterprise的「Project Build Component」部分。但是,在嘗試編譯解決方案時出現以下錯誤:MSBuild與BizTalk失敗

C:\ Program Files(x86)\ MSBuild \ Microsoft \ BizTalk \ BizTalkCommon.targets(115,9):error MSB4018:System.IO。 FileNotFoundException:無法加載文件或程序集'Microsoft.VisualStudio.OLE.Interop,Version = 7.1.40304.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其某個依賴項。該系統找不到指定的文件。 C:\ Program Files(x86)\ MSBuild \ Microsoft \ CCC \ BizTalk \ BizTalkCommon.targets(115,9):錯誤MSB4018:文件名:'Microsoft.VisualStudio.OLE.Interop,Version = 7.1.40304.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'[C:\ CCNetBuild \ FlexTMS.TLAutoTender。 BizTalk \ Trunk \ Echo.BAS.TLAutoTender.Internal.Maps \ Echo.BAS.TLAutoTender.Internal.Maps.btproj] C:\ Program Files(x86)\ MSBuild \ Microsoft \ BizTalk \ BizTalkCommon.targets(115,9) :錯誤MSB4018:在Microsoft.VisualStudio.BizTalkProject.Compiler.MapCompiler.Compile(BizTalkBuildSnapshot buildSnapshot,IEnumerable 1 mapFilesToCompile, IEnumerable 1 schemaFiles,List xsltFiles)[C:\ CCNetBuild \ FlexTMS.TLAutoTender.BizTalk \ Trunk \ Echo.BAS.TLAutoTender .Internal.Maps \ Echo.BAS.TLAutoTender.Internal.Maps.btpro j] C:\ Program Files(x86)\ MSBuild \ Microsoft \ BizTalk \ BizTalkCommon.targets(115,9):error MSB4018:at Microsoft.VisualStudio.BizTalkProject.BuildTasks.MapperCompiler.Execute()[C:\ CCNetBuild \ FlexTMS.TLAutoTender.BizTalk \ Trunk \ Echo.BAS.TLAutoTender.Internal.Maps \ Echo.BAS.TLAutoTender.Internal.Maps.btproj] C:\ Program Files(x86)\ MSBuild \ Microsoft \ BizTalk \ BizTalkCommon.targets( 115,9):錯誤MSB4018:在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()[C:\ CCNetBuild \ FlexTMS.TLAutoTender.BizTalk \ Trunk \ Echo.BAS.TLAutoTender.Internal。 Maps \ Echo.BAS.TLAutoTender.Internal.Maps.btproj] C:\ Program Files(x86)\ MSBuild \ Microsoft \ BizTalk \ BizTalkCommon.targets(115,9):error MSB4018:at Microsoft.Build.BackEnd.TaskBuilder .ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,TaskHost taskHost,ItemBucket存儲桶,TaskEx ecutionMode howToExecuteTask,布爾& taskResult)[C:\ CCNetBuild \ FlexTMS.TLAutoTender.BizTalk \中繼線\ Echo.BAS.TLAutoTender.Internal.Maps \ Echo.BAS.TLAutoTender.Internal.Maps.btproj]

此錯誤品牌沒有意義。我的理解是Visual Studio不再需要構建組件。

回答

1

我會看看修復安裝。您只需要構建組件和SDK。看here

0

我將以下內容添加到以前的答案,因爲我在這一點上的信譽是< 50,無法添加註釋:

  • 的Microsoft Windows SDK的Windows 7和.NET Framework 4可下載from here

  • 此外,請確保您的構建命令或構建服務器引用MSBuild-32位(C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ msbuild.exe)而不是64(C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ msbuild.exe)