Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 2.25 KB

how to build.md

File metadata and controls

34 lines (26 loc) · 2.25 KB

How to build WeBlog

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.

Building the Project

Perform the following before opening the solution in Visual Studio.

  1. Ensure you have the desired Sitecore version already installed and working on the local machine.
  2. Copy the deploy.targets.sample file to deploy.targets.
    1. The deploy.targets file is a local only file. It's already been added to the .gitignore file.
  3. Edit the deploy.targets file to update the paths to the Sitecore instances.
  4. For each of the Sitecore versions you want to build against, update the SitecorePath property to reference the web root of the Sitecore instance.
    1. Each SitecorePath property includes a Condition defining which Sitecore version the property is used for.
  5. Open Visual Studio and select the appropriate build configuration.
    1. The numbers of a build configuration refers to the Sitecore version the project will be built for.
  6. Rebuild the solution
  7. The project will automatically deploy the WeBlog files to the Sitecore instance you build against.

Restore Sitecore Items

In addition to building the project and deploying the files, you must also restore the WeBlog Sitecore items.

  1. Copy the data\serialization folder to the data folder of the Sitecore instance.
  2. Log into Sitecore Desktop as an administrator and swap to the core DB.
  3. Open the content editor and switch to the Developer tab.
    1. If the Developer tab is not visible, right-click on the tabs to enable it.
  4. Click the Update Database command.
  5. Swap back to the master DB.
  6. Open the content editor and switch to the Developer tab.
  7. Click the Update Database command.
  8. Perform a full publish