.NET Web 应用程序的 32 位构建服务器和 64 位生产服务器 [英] 32-bit Build Server and 64-bit Production Server for .NET Web Apps

查看:39
本文介绍了.NET Web 应用程序的 32 位构建服务器和 64 位生产服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的工作站运行 64 位 Vista,我们的 ASP.NET MVC Web 应用程序的生产服务器是 64 位 Server 2008 服务器.但是,我们运行 TeamCity 的构建服务器是 Server 2008 32 位服务器.我们将采用这些构建并将它们部署在 64 位生产服务器上.这些应用程序都是用 C# 编写的.我应该担心在 32 位环境中进行构建吗?是否有必要升级我们的构建服务器?

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?

推荐答案

从技术上讲,这样做应该没有问题,因为编译器只会生成与平台无关的 IL 代码.

Technically, there should be no problem in doing so as the compiler will only generate IL code that is not platform dependent.

.NET 应用程序将在生产环境中的 x64 CLR 上运行.在运行时,JIT 编译器将生成 x64 代码.

The .NET application will run on x64 CLR in the production environment. At runtime, the JIT compiler will produce x64 code.

这篇关于.NET Web 应用程序的 32 位构建服务器和 64 位生产服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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