32-bit Build Server and 64-bit Production Server f

2020-07-22 18:57发布

问题:

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.