WeBlog builds against and deploys to a local Sitecore instance on your machine. The Sitecore instance can be located anywhere on the local machine including in the same folder as the WeBlog source files. As WeBlog includes build configurations for several different Sitecore versions it is not possible to setup Sitecore in the same folder as the WeBlog project if you want to build against more than one Sitecore version.
If you only need to build against a single Sitecore version and like to work in the web root, then you just need to clone the WeBlog repository into your web root folder. No additional setup is required.
Perform the following before opening the solution in Visual Studio.
- Ensure you have the desired Sitecore version already installed and working on the local machine.
- Copy the
deploy.targets.sample
file todeploy.targets
.- The
deploy.targets
file is a local only file. It's already been added to the.gitignore
file.
- The
- Edit the
deploy.targets
file to update the paths to the Sitecore instances. - For each of the Sitecore versions you want to build against, update the
SitecorePath
property to reference the web root of the Sitecore instance.- Each
SitecorePath
property includes aCondition
defining which Sitecore version the property is used for.
- Each
- Open Visual Studio and select the appropriate build configuration.
- The numbers of a build configuration refers to the Sitecore version the project will be built for.
- Rebuild the solution
- The project will automatically deploy the WeBlog files to the Sitecore instance you build against.
In addition to building the project and deploying the files, you must also restore the WeBlog Sitecore items.
- Copy the
data\serialization
folder to thedata
folder of the Sitecore instance. - Log into Sitecore Desktop as an administrator and swap to the core DB.
- Open the content editor and switch to the
Developer
tab.- If the
Developer
tab is not visible, right-click on the tabs to enable it.
- If the
- Click the
Update Database
command. - Swap back to the master DB.
- Open the content editor and switch to the
Developer
tab. - Click the
Update Database
command. - Perform a full publish