onsdag den 12. november 2014
onsdag den 5. november 2014
Sitecore as a Nuget-package - Buildsetup Part 1
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
Abonner på:
Opslag (Atom)