Upgrading Kentico 12 manually
Upgrading Kentico manually
Note: We strongly recommend using the automatic upgrade described in Upgrading to Kentico 12.
If you already have Kentico 12 and wish to apply Kentico 12 Service Pack, you only need to apply hotfix version 12.0.29 or newer to your project. See the Hotfix instructions to learn how to install the service pack via the hotfix.
If necessary, you can perform the upgrade from version 11 to 12 manually.
Installing the upgrade procedure
- Download the Kentico 12 upgrade.
- Run Upgrade_11_0_12_0.exe.
- Install the upgrade procedure (the installer places the upgrade into the C:\Program Files\Kentico\12.0\Upgrade110_120 folder by default).
Preparing your project for the upgrade
- Set up a local copy of your Kentico 11 web project.
- Go through the required Steps before the upgrade.
Creating the project files
The recommended way to create an upgraded project is to start with a new clean installation of Kentico 12 and then transfer custom file content from your original project.
根据这个手动升级,写自动升级
1.需要删除的文件SourceItemsToRemove,在Kentico\12.0\Upgrade110_120\upgrade.xml文件中列出来了
2.需要执行的数据库脚本,Kentico\12.0\Upgrade110_120\SQL\upgrade.sql
3.升级的流程,参考Kentico\12.0\Upgrade110_120\CMS\CMS\Old_App_Code\CMS\UpgradeProcedure.cs和Kentico\12.0\Upgrade110_120\CMS_PROJ\CMS\App_Code\CMS\UpgradeProcedure.cs,这两份文件是同一个。
导出xml中待删除的文件
[Test] public void Test20210427001() { var folder = @"C:\workspace\Kentico\12.0\Upgrade110_120\"; string path =Path.Combine(folder,"upgrade.xml"); var rootElement = XElement.Load(path); //UpgradeItemsList node var temp = rootElement.Element("SourceItemsToRemove"); StringBuilder stringBuilder = new StringBuilder(); foreach (var item in temp.Elements()) { var value = item.Value; value = value.Replace("<string>", string.Empty); value = value.Replace("<string>", string.Empty); //Console.WriteLine(value); stringBuilder.AppendLine(value); } string outputPath = Path.Combine(folder, "DeleteFiles.txt"); File.WriteAllText(outputPath,stringBuilder.ToString()); }
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2020-04-21 XSS实例 All is XSS that comes to the .NET
2020-04-21 SQL Change Automation --> Generating migrations and Applying migrations
2020-04-21 SQL Change Automation --> Setting up a project with an existing database in SSMS
2020-04-21 SQL Change Automation --> Baseline scripts
2020-04-21 ssms 生成迁移脚本 Generate script in SQL Server Management Studio
2020-04-21 Working with scripts folders【SQL Compare】
2020-04-21 Existing database setup