简体   繁体   English

使用TFS编译InstallShiel项目时遇到问题

[英]Trouble building InstallShiel Project with TFS

I currently try to install and configure TFS Build for our TFS Server. 我目前正在尝试为我们的TFS服务器安装和配置TFS Build。 With "normal" project like Console Application, Windows Forms or WPF everything is working perfectly fine. 使用控制台应用程序,Windows窗体或WPF之类的“普通”项目,一切都可以正常工作。 But if I try to add a IntallShield Project to my Solution which should build a *.msi File which inherits the output of the Project Files this Error occours in my Build: 但是,如果我尝试将IntallShield项目添加到我的解决方案中,则应该构建一个* .msi文件来继承该项目文件的输出,因此该错误会在我的Build中发生:

"C:\\Program Files (x86)\\MSBuild\\InstallShield\\2013Limited\\InstallShield.targets" (108): The "InstallShield.Tasks.InstallShield" task could not be loaded from the assembly C:\\Program Files (x86)\\MSBuild\\InstallShield\\2013Limited\\InstallShield.Tasks.dll. “ C:\\ Program Files(x86)\\ MSBuild \\ InstallShield \\ 2013Limited \\ InstallShield.targets”(108):无法从程序集C:\\ Program Files(x86)\\ MSBuild加载“ InstallShield.Tasks.InstallShield”任务\\的InstallShield \\ 2013Limited \\ InstallShield.Tasks.dll。 Could not load file or assembly 'file:///C:\\Program Files (x86)\\MSBuild\\InstallShield\\2013Limited\\InstallShield.Tasks.dll' or one of its dependencies. 无法加载文件或程序集“ file:/// C:\\ Program Files(x86)\\ MSBuild \\ InstallShield \\ 2013Limited \\ InstallShield.Tasks.dll”或其依赖项之一。 An attempt was made to load a program with an incorrect format. 试图加载格式错误的程序。 Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. 确认声明正确,程序集及其所有依赖项均可用,并且任务包含实现Microsoft.Build.Framework.ITask的公共类。

I already installed InstallShield 2013 Limited Edition onto the built Machine, but the Error still occours.. Anyone know this problem, or a solution? 我已经在安装的计算机上安装了InstallShield 2013 Limited Edition,但是仍然出现错误。.有人知道此问题或解决方案吗?

Marcel 马塞尔

Edit: The files: "C:\\Program Files(x86)\\MSBuild\\InstallShield\\2013Limited\\InstallShield.Tasks.dll" and "C:\\Program Files(x86)\\MSBuild\\InstallShield\\2013Limited\\InstallShield.targets" exist. 编辑:文件:存在“ C:\\ Program Files(x86)\\ MSBuild \\ InstallShield \\ 2013Limited \\ InstallShield.Tasks.dll”和“ C:\\ Program Files(x86)\\ MSBuild \\ InstallShield \\ 2013Limited \\ InstallShield.targets”。 Do I need to install Visual Studio onto my build machine? 我需要在自己的构建计算机上安装Visual Studio吗?

It sounds like TFS is attempting to load InstallShield's 32-bit binaries into a 64-bit process. 听起来TFS试图将InstallShield的32位二进制文​​件加载到64位进程中。 Try editing your build platform to specify x86. 尝试编辑您的构建平台以指定x86。 The answers to Howto Force TFS 2010 to build a website using the 32bit ASPNET Compiler on a 64 bit build machine describe how to do this. Howto Force TFS 2010在64位构建计算机上使用32位ASPNET编译器构建网站的答案描述了如何执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM