This upgrade procedure contains 9 steps.
1. Open the solution file with notepad, search for the following value
{603c0e0b-db56-11dc-be95-000d561079b0}
Replace it with:
{F85E285D-A4E0-4152-9332-AB1D724D3325}
This step is to modify the solution type of the MVC project from 1.0 to 2.0. After changes, it can be opened by Visual Studio 2008 with the ASP.NET MVC 2.0 installed
2. In case the following code exists in the project file's Post-build events, please delete them:
rd "$(TargetDir)SQLite" md "$(TargetDir)SQLite" copy "..\lib\SQLite\*.*" "$(TargetDir)\SQLite\*.*" rd "$(TargetDir)SQLite\Versioning" md "$(TargetDir)SQLite\Versioning" copy "..\lib\SQLite\Versioning\*.*" "$(TargetDir)\SQLite\Versioning\*.*"
3. Update the lib folder. Copy and paste the lib folder from new ModuleTemplate of Kooboo CMS 2.1.0.0 to overwrite those dlls and re-add the reference to lib\Everest.CmsServices.dll and lib\System.Web.Mvc.dll。
4. Copy and paste the CodeTemplates folder to overwrite the existing old folder.
5. Copy Kooboojs from the new ModuleTemplate folder to the root of old Module. This folder has exactly the same structure as Kooboo CMS's main site's which makes it possible for developer to refer to existing resources in the main site such as HTML editors.
6. Copy externalResources.config from new ModuleTemplate folder to root of old Module folder. This file is the same as the Kooboo CMS main site's, which makes it convenient to use existing configurations of Kooboo CMS's main site
7. After adding the Kooboojs folder and externalResources.config, developers will be able to use codes like below :
This will refer to the scripts or stylesheet files that are configured in the externalResources.config.
You can also use the following code to use the built-in HTML editor in Kooboo CMS.
RegisterTinymceScripts needs to be registered before using, and only one script can be registered per page.
8. Search for the following value in the web.config file:
Everest.CmsServices.HttpModule.KoobooUrlRoutingModule,Everest.CmsServices
Replace it with
Everest.CmsServices.Web.KoobooUrlRoutingModule,Everest.CmsServices
9. Open "views\web.config" in the module folder and change all values of "1.0.0.0" to "2.0.0.0"
10. Add the following configuration section to the Web.config file, this will use the MVC 2.0 assembly instead of the existing MVC 1.0
