32-bit Build Server and 64-bit Production Server for .NET Web Apps

风格不统一 提交于 2019-12-21 19:52:42

问题


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.



来源:https://stackoverflow.com/questions/524837/32-bit-build-server-and-64-bit-production-server-for-net-web-apps

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