Issue
One of our main issues when developing Sitecore solutions is to keep our sites up to date with Sitecore files.
The solution to this issue has for years been to run a custom robocopy script that copies the files from the public development server.
This requires that the server is always reachable, up to date and not infected with misplaced files.
Solution
I have made a script that takes a Sitecore zip
installation file as input and creates a nuget-package from it.
This article will show how this is done.
Following steps are taken when creating the nuget-package
- Initializing variables
- Unpacking zip-file
- Moving data-folder to App_Data/Sitecore
- Creating force.txt files to force empty directories to be included in nuget-package
- Copy developer license file to App_Data/Sitecore/License
- web.config changes - Correcting paths to dataFolder and license file
- Creating nuspec file - Syncronising version of Sitecore with the nuget-package
- Creating nuget package
Så inden lederen kan være dygtig I Tokes terminologi som jeg ser det skal han
Opdatering: Teksten er også skrevet som kommentar på Tokes blog-indlæg og han har været så venlig at svar og som forventet er blog-indlægget også lidt tænkt som en provokation, da det jo er det der får flest op af sofaerne.