development · framework

Notes for building your own Sitecore development framework based on my simple one

Recently, I have introduced my simple framework to everyone. It looks OK to me and my friends / my colleagues so I’d like to write down some notes for building your own one based on it. Hopefully, this post will save your time.

  1. Download the latest source code here
  2. (Option 1) unzip archive.zip file above to D:\my-simple-framework (for instance) and then use PowerShell script to transform everything
    • open Windows PowerShell (run as administrator)
    • change directory to D:\my-simple-framework\scripts\Buildify
    • execute .\transform -sourcePath “D:\my-simple-framework” -newIdentifier “YourClientName”
    • not_5.png
  3. (Option 2) an alternative way is to use some software products such as Bulk Rename Utility and Notepad++
    • download Bulk Rename Utility and install it if not yet
    • rename all the folders, all the files whose name contains VietHoang to YourClientName
    • not_4
    • download Notepad++ and install it if not yet
    • open it and press Ctrl + F to open “Find” dialog
    • select Find in Files tab
    • find VietHoang inside all the files in project folder then replace to YourClientName
    • not_3
  4. Open YourClientName.Sitecore.sln via Visual Studio and make sure you build it successfully
  5. Refer to Step-by-step Guide in order to add your own tweaks if necessary
    • Note: for Docker way Sitecore version 9.3 => let’s generate SSL certificate as we want to access Sitecore sites with HTTPS protocol by using mkcert
      • open Windows PowerShell (run as administrator)
      • execute choco install mkcert
      • msdf26_11
      • change directory to D:\my-simple-framework\Docker\traefik\certs
      • execute mkcert “*.YourClientName.local”
  6. Renew all default Sitecore items’ ID if possible so that it’s able to play with multiple Visual Studio solutions in shared Sitecore instance
    • not_33.png
  7. Renew all Assemblies’ Guid if possible so that it’s able to play around with multiple Visual Studio solutions on a shared Sitecore instance
    • not_32.png

My suggestions

Happy Sitecore Coding!

Advertisement

6 thoughts on “Notes for building your own Sitecore development framework based on my simple one

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.