使用 C# 在 Asp.Net 网站中提取和复制性能差异

发布于 2024-10-06 21:28:25 字数 179 浏览 0 评论 0原文

我有近 100 个网站会在某种情况下更新,我有一个 winzip 存档,其中包含替换这些网站的文件。我想知道

  1. 我可以将该文件提取到一个文件夹中,然后将它们复制到所有 100 个网站文件夹中
  2. 我可以将存档直接提取到 100 个网站文件夹中,

其中一个性能更好且不易出错。

I have almost 100 website that will update in a condition, I have a winzip archive that contains the files that replaces those websites. I want to know that

  1. I can extract that files in a folder and then copy them to all 100 websites folders
  2. I can extract the archive directly to 100 websites folders

which one is better in performance and less prone to errors.

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

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

发布评论

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

评论(1

凉宸 2024-10-13 21:28:25

可能更好的解决方案(因为您的源代码在每种情况下都是相同的):

将源代码放在系统上的一个位置,并将所有不同的网站指向同一个物理文件夹。

Possibly better solution (seeing as your source code is the same in each case):

Have your source code in one place on the system and point all the different web sites to the same physical folder.

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