MSBuild与BizTalk失败

时间:2011-04-29 16:21:22

标签: msbuild biztalk

我正在尝试为BizTalk 2010项目设置构建服务器。我只安装了BTS 2010 Enterprise的“Project Build Component”部分。但是,在尝试编译解决方案时出现以下错误:

C:\ Program Files(x86)\ MSBuild \ Microsoft \ BizTalk \ BizTalkCommon.targets(115,9):错误MSB4018:System.IO.FileNotFoundException:无法加载文件或程序集'Microsoft.VisualStudio.OLE.Interop ,Version = 7.1.40304.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。该系统找不到指定的文件。 [C:\ CCNetBuild \ FlexTMS.TLAutoTender.BizTalk \中继线\ 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.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 1& generatedCodeFiles, List 1& xsltFiles)[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.BuildTasks.MapperCompiler.Execute()[C:\ CCNetBuild \ FlexTMS.TLAutoTender .BizTalk \中继线\ Echo.BAS.TLAutoTender.Internal.Maps \ Echo.BAS.TLAutoTender.Internal.Maps.btproj] C:\ Program Files(x86)\ MSBuild \ Microsoft \ BizTalk \ BizTalkCommon.targets(115,9):错误MSB4018:at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()[C: \ CCNetBuild \ FlexTMS.TLAutoTender.BizTalk \中继线\ 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.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,TaskHost taskHost,ItemBucket bucket, TaskExecutionMode howToExecuteTask,Boolean& taskResult)[C:\ CCNetBuild \ FlexTMS.TLAutoTender.BizTalk \ Trunk \ Echo.BAS.TLAutoTender.Internal.Maps \ Echo.BAS.TLAutoTender.Internal.Maps.btproj]

这个错误毫无意义。我的理解是构建组件不再需要Visual Studio。

2 个答案:

答案 0 :(得分:1)

我会考虑修复安装。您只需要构建组件和SDK。看here

答案 1 :(得分:0)

我将在上一个答案中添加以下内容,因为此时我的声誉是< 50并且无法添加评论:

  • 可以从here下载适用于Windows 7和.NET Framework 4的Microsoft Windows SDK

  • 另外请确保您的构建命令或构建服务器引用MSBuild-32位(C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ msbuild.exe)而不是64位(C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ msbuild.exe)