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
#PowerShell modules need to enable script execution
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force;
#Chocolatey
write-host "Installing Chocolatey module"
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#BoxStarter depends of Chocolatey
write-host "Installing Boxstarter module"
CINST Boxstarter -y
@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