跨服务器移动 C# .NET 项目文件的最佳实践

发布于 2024-08-14 11:00:24 字数 169 浏览 2 评论 0原文

对 C# .NET 项目和 DEV 服务器中的特定文件进行更改,然后将该文件移动到不同的环境(例如服务器 B)的最佳策略是什么?我注意到它总是希望我在目标服务器上重新编译,我认为我做错了什么,因为我认为我不需要这样做(加上服务器不是内部的,所以它非常慢且耗时)。

您或您的公司使用的任何建议或策略将不胜感激。

What is the best strategy for making changes to a specific file within a C# .NET project and a DEV server and then moving that file to a different environment, say server B? I noticed it always wants me to recompile on the destination server and I figured I was doing something wrong because I didn't think I would have to (plus the server isn't in-house so it is really slow and time consuming).

Any suggestions or strategies you or your company uses would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

草莓酥 2024-08-21 11:00:24
  • 确保您使用的是编译 DLL 的 Web 应用程序项目,而不是使用松散代码文件的网站。
  • 您可以使用像 Subversion 这样的源代码版本控制系统。
  • Make sure you are using a Web Application project where it compiles a DLL, not web site which uses loose code files.
  • You could use a source code versioning system like Subversion.
世界等同你 2024-08-21 11:00:24

对源文件使用源代码控制程序(如 SubVersion),对由这些文件构建的二进制文件使用 Cruise Control...

use a source control program for source files (like SubVersion) and Cruise Control for binaries built out of those files...

避讳 2024-08-21 11:00:24

对于 Web 应用程序开发,我的经验是:

开发人员在其本地计算机上拥有一个附加到源代码管理的开发环境
共享所创建项目的 DEV Web 服务器允许开发人员手动将文件复制到 Web 应用程序文件夹。
测试 Web 服务器,其中 MSI 安装仅用于分发 UAT 的更改
一个 PROD Web 服务器,其中 MSI 安装仅用于分发 UAT 批准的 MSI

我参与的项目的规模通常会使构建脚本变得过大,大多数时候一个项目正在处理它,它会被构建多次以进行调试等。

For web application development my experience has been:

Developers have a development environment on their local machines that is attached to source control
A DEV web server with shares to the projects created allows developers to COPY files to the web application folders manually.
A TEST web server where MSI installations ONLY are used to distribute the changes for UAT
A PROD web server where MSI installations ONLY are used to distribute the UAT approved MSI

The size of projects I am involved with usually makes build scripts overkill, most times a project is being worked on it is built many times for debugging etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文