Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

Orchard CMS Theming with Visual Studio

Tags: orchard-cms, visual-studio


  1. Download and unzip Orchard Source (or enlist).
  2. Open and build the Orchard.sln
  3. Setup Orchard and create a theme.


Download and unzip Orchard Source

  1. Go to orchard.codeplex.com/releases/view/115750
  2. Download Orchard.Source.1.8.zip
  3. Right click on the .zip > Properties > Unblock
  4. Right click > Extract All

Open in Visual Studio

  1. Open the src\Orchard.sln file with Visual Studio.
  2. In Visual Studio, build Orchard.Web to create the orchard.exe tool

Setup Orchard and Create a Theme

  1. Run orchard.exe
  2. Run the one-time setup command.
  3. Turn on Code Generation.
  4. Generate your theme.
  5. While you’re at it, enable ShapeTracing.
setup /SiteName:SITE /AdminUsername:USER /AdminPassword:PASS /DatabaseProvider:SQLCE
feature enable Orchard.CodeGeneration
codegen theme My.FirstTheme /CreateProject:true /IncludeInSolution:true /BasedOn:TheThemeMachine
theme enable My.FirstTheme
feature enable Orchard.DesignerTools