简体   繁体   English

仅将更改上传到ASP.NET中已发布的网站

[英]Upload only changes to published website in ASP.NET

Recently I have published my website and uploaded it to GoDaddy server. 最近,我发布了我的网站并将其上传到GoDaddy服务器。 After that I have made changes in .aspx as well in .aspx.cs files. 之后,我对.aspx和.aspx.cs文件进行了更改。 Then I uploaded that files to server but it throws an error. 然后,我将该文件上传到服务器,但抛出错误。 So anybody is having idea about how to upload only changes to published ASP.NET website. 因此,任何人都有关于如何仅将更改上传到已发布的ASP.NET网站的想法。

Thanks in advance! 提前致谢!

Here is what I do: 这是我的工作:

  1. I keep a copy of the older version locally. 我在本地保留了较旧版本的副本。
  2. Then run a diff tool( folderpatch ) to compare it with the new version 然后运行差异工具( folderpatch )以将其与新版本进行比较
  3. Generate a patch(zip file) 生成补丁(zip文件)
  4. Upload the patch 上传补丁
  5. Patch the online version to make it same as my new version 修补在线版本以使其与我的新版本相同

Using a tool ensure that you don't miss any updated files. 使用工具,确保您不会错过任何更新的文件。
Having to upload only one file is a lot faster for uploads. 只需上传一个文件,上传速度就快得多。
Using the patch tool on the server, ensures that all files are uploaded to the correct locations. 使用服务器上的补丁程序工具,确保将所有文件上载到正确的位置。

Ps: I wrote folderpatch to make my life easier. 附:我写了folderpatch来简化生活。 But its free and open source, so feel free to use it where it helps you. 但是它是免费和开源的,因此随时可以在对您有帮助的地方使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM