Our workstations are running 64-bit Vista, and the production servers for our ASP.NET MVC web apps are 64-bit Server 2008 servers. However, our build server running TeamCity is a Server 2008 32-bit server. We will taking these builds and deploying them on the 64-bit production servers. The applications are written all in C#. Should I be concerned about doing the builds in a 32-bit environment? Is it necessary to upgrade our build server?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Technically, there should be no problem in doing so as the compiler will only generate IL code that is not platform dependent.
The .NET application will run on x64 CLR in the production environment. At runtime, the JIT compiler will produce x64 code.
回答2:
In my experience, compiling an application with a 32-bit machine and deploying it to a 64-bit will cause the app to run slow. Might be different for web apps, though.