如何强制 TFS 2010 在 64 位构建机器上使用 32 位 ASPNET 编译器构建网站 [英] Howto Force TFS 2010 to build a website using the 32bit ASPNET Compiler on a 64 bit build machine

查看:22
本文介绍了如何强制 TFS 2010 在 64 位构建机器上使用 32 位 ASPNET 编译器构建网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个非常大的产品,它可以在我们的 32 位构建控制器上很好地编译,并且主要在我们的 64 位构建控制器上进行编译,只有一个例外.我们有一个预编译的 Web 表单前端.当它在 64 位机器上构建时,它会在日志文件中显示一个命令行*C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v/ourwebapp -p ..\ourwebapp\ -u -f "........\Binaries\MixedPlatforms_PublishedWebsites\ourwebapp\"*这会导致错误,因为我们有一些 32 位第三方 dll:ASPNETCOMPILER:错误 ASPCONFIG:无法加载文件或程序集Leadtools.Codecs"或其依赖项之一.试图加载格式不正确的程序.[C:\Builds\5\OurApp\OurApp Build\Sources\Product\Solutions\ourwebapp_ourwebapp.metaproj]

We have a very large product that compiles just fine on our 32 bit build controllers and mostly on our 64 bit build controllers with one exception. We have a precompiled web forms front end. When it builds on the 64 bit machine it shows a command line in the log file of *C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v /ourwebapp -p ..\ourwebapp\ -u -f "........\Binaries\Mixed Platforms_PublishedWebsites\ourwebapp\"* This causes an error because of some 32 bit third part dll's we have: ASPNETCOMPILER : error ASPCONFIG: Could not load file or assembly 'Leadtools.Codecs' or one of its dependencies. An attempt was made to load a program with an incorrect format. [C:\Builds\5\OurApp\OurApp Build\Sources\Product\Solutions\ourwebapp_ourwebapp.metaproj]

有谁知道正确的解决方案文件语法以强制进行 32 位构建.谢谢.

Does anyone know the correct solution file syntax to force a 32 bit build regardless. Thank you.

推荐答案

编辑您的构建定义并选择此选项.

Edit you Build Definition and select this option.

Process Tab-> Advance->MSBuild Platform->X86

保存您的构建并触发构建...

Save your build and trigger the build ...

这篇关于如何强制 TFS 2010 在 64 位构建机器上使用 32 位 ASPNET 编译器构建网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆