Howto Force TFS 2010 to build a website using the 32bit ASPNET Compiler on a 64 bit build machine

非 Y 不嫁゛ 提交于 2019-12-04 04:02:23

问题


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]

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


回答1:


Edit you Build Definition and select this option.

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

Save your build and trigger the build ...




回答2:


Erik, if you edit your build definition, under the process tab there is the option to set the msBuild compilation x86 or x64 or Auto, setting this to x86 would force the build to perform the compilation in 32 bit.

In the Configurations to Build box, you can specify which platforms and configurations you want to build. (To show this box, expand the Required node, and then expand the Items to Build node.) For example, you can specify that this build should build only the release configuration of the 32-bit version of your C++ project by including Release|x86 in this box. If you leave the Configurations to Build box empty, the default configuration and platform that is defined in each solution or project is built.

See the steps here. http://msdn.microsoft.com/en-us/library/dd647547.aspx



来源:https://stackoverflow.com/questions/6782329/howto-force-tfs-2010-to-build-a-website-using-the-32bit-aspnet-compiler-on-a-64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!