Skip to content

Instantly share code, notes, and snippets.

View hedipo's full-sized avatar
🏠
Working from home

Hedipo Soares de Menezes hedipo

🏠
Working from home
View GitHub Profile
@hedipo
hedipo / HabitatSolutionScript.ps1
Last active July 31, 2018 08:35 — forked from akshaysura/HabitatSolutionScript.ps1
Create a Sitecore Helix solution from scratch using PowerShell
#paths to the project templates on your system, getting ClassLibrary template on FrameworkVersion = 4.7
$global:classTemplate = $dte.Solution.GetProjectTemplate("csClassLibrary.vstemplate|FrameworkVersion=4.7", "CSharp")
$global:webTemplate = $dte.Solution.GetProjectTemplate("EmptyWebApplicationProject40.vstemplate", "CSharp")
#variable to set framework verison of web applications projects
$global:frameworkVersion = "4.7"
#variable used to store the path for the empty Habitat folder
$global:helixPath =""
#empty variable used to store the solution name