如何使用asp.net为Web应用程序创建补丁文件 [英] How to create a Patch file for a web application using asp.net
问题描述
我想了解VS 2010中是否有可用的规定,或者是否使用某些第三方工具来为Web应用程序创建补丁/热修复程序.我不想发布复制和替换文件/dll方法的方法,而是使用Web安装程序以一种方式安装应用程序,以便仅更新从原始应用程序更改的文件并将其安装在虚拟目录中.
I want to understand if there is a provision available within VS 2010 or using some third party tool for creating Patches/Hot fixes to a web application. I don't want to publish copy and replace the files / dlls methodology, Rather use a web setup that installs the application in a way such that only the files that were changed from the original application will be updated and installed in the Virtual Directory.
更清楚地说,我想执行以下步骤:
To be more clear, I would like to do the following steps:
第1步
a)创建一个包含10页的Web应用程序
a) Create a Web Application with 10 Pages
b)使用Web设置项目部署Web应用程序
b) Deploy the web application using Web Setup Project
第2步
c)在10页中的2页中更改功能
d)仅为2个更改的文件和受影响的Dll创建补丁.
步骤-3:
e)运行作为修补程序或修补程序创建的安装文件.
e) Run the setup file that was created as a patch or a hot fix.
现在,我想获得步骤-2部分中提到的 c)和 d)点.
Now, I want to achieve the c) and d) points that are mentioned in Step -2 section.
推荐答案
Assuming you have followed MSI patching guidelines when creating the initial web setup project and the one you want to derive a patch from...
基本准则(如果您进行搜索,还需要遵循其他准则):
Basic guidelines (plenty of others to follow if you search):
- 确保您的Web项目具有有效的版本号(1.2.3.4)
- 为您的初始版本构建安装程序
- 时间流逝....
- 根据c)的要求进行更改
- 更新Web项目版本-DLL需要增加版本
- 更新Web设置项目属性-版本需要增加.可能是次要的(XXX.YYY.ZZZ)<-增量Y(默认为1.0.0)
- 更新设置项目属性中的程序包代码
- 使用更改构建安装程序
- 对每个设置进行管理安装(msiexec/a websetup.msi)
- 使用补丁程序创建实用程序来创建补丁程序,将您刚刚创建的旧"管理安装与新"管理安装进行比较.(此步骤取决于您要使用的工具.我过去曾经使用Installshield以及直接的msimsp.exe-旧指南您可以通过从以前的管理员安装和最新的管理员安装中删除它们来限制受补丁影响的文件(假设它们没有更改).
You can limit the files impacted by the patch (assuming they didn't change) by removing them from both the previous and the latest admin installs.
真的,对网站进行补丁修补与MSI安装的任何其他文件集没有什么不同.请注意,微软似乎正在通过msdeploy进行网站部署,而不是为其构建安装程序.对于内部部署,它的工作要容易得多.
Really, patching your website shouldn't be any different than any other set of files installed by MSI. Note that microsoft seems to be moving towards website deployment via msdeploy instead of building installers for them. For internal deployment, it works much easier.
这篇关于如何使用asp.net为Web应用程序创建补丁文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!