Académique Documents
Professionnel Documents
Culture Documents
PROJECT
THIS DOCUMENT ADDRESSES ON SETTING UP UNICORN FOR SITECORE
PROJECT ALSO TELLS HOW TO USE T4 TEMPLATE CODE GENERATION
Author:
Vikas Nadvi,
Deloitte Digital,
1|Unicorn
Mailto: vsanjeevarayanako@deloitte.com
2|Unicorn
TABLE OF CONTENTS
1. REVISION HISTORY____________________________________________________3
2. REFERENCES___________________________________________________________4
3. PURPOSE OF THIS DOCUMENT________________________________________5
4. INSTALLATION OF UNICORN.__________________________________________6
4.1
4.2
CONFIGURATION CHANGES____________________________________________________7
3|Unicorn
1. REVISION HISTORY
Docume
nt
Version
1.0
4|Unicorn
Review by
Vikas Nadvi
Review
Date
18/10/2016
Comments
2. REFERENCES
Title
5|Unicorn
Link/Ref.
https://github.com/kamsar/Unicorn
6|Unicorn
4. INSTALLATION OF UNICORN.
In this document we will get to know how to install unicorn on a sitecore project
step by step.
4.1
2. It will install latest unicorn and Rainbow dlls to the web project
7|Unicorn
8|Unicorn
3. Change the following changes to include the tree items which needs to be
serialized. Also add targetDataStore node which was commented out in
unicorn.config. We can give location based on the source controlled location.
Include your predicates based on your requirements.
9|Unicorn
7. Once it runs successfully, you can see the folders created for the mentioned
names in the predicate configuration.
10 | U n i c o r n
1. Open nuget manager on visual studio under Tools -> Extensions and Updates
and install RainbowCodeGeneration
2. Once installed, RainbowCodeGeneration will add sample T4 template file. This will
give errors as this is not configured. Error occurs because Sitecore.Kernel.dll and
Sitecore.Logging.dll will not be present
11 | U n i c o r n
12 | U n i c o r n
4. On the last step change the variable values of T4 template - treename, treepath and
physicalFileStore to the corresponding values
13 | U n i c o r n
14 | U n i c o r n