Skip to content

Instantly share code, notes, and snippets.

Working from home

Hedipo Soares de Menezes hedipo

Working from home
View GitHub Profile
View 0-Powershel Pre-requisites.ps1
#PowerShell modules need to enable script execution
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force;
write-host "Installing Chocolatey module"
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(''))
#BoxStarter depends of Chocolatey
write-host "Installing Boxstarter module"
CINST Boxstarter -y
hedipo / HabitatSolutionScript.ps1
Last active Jul 31, 2018 — forked from akshaysura/HabitatSolutionScript.ps1
Create a Sitecore Helix solution from scratch using PowerShell
View HabitatSolutionScript.ps1
#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