Performs a recursive search through a Visual Studio Project Item's ProjectItems collection for the given item name. All branches are searched looking for the first return of the item If no item is found then $null is returned.
$project = Get-Project 'Coffeehouse.Feature.CouponCode'
Get-ProjectItem -ProjectItem $project -ItemName 'App_Config'Recursively loops through the current Solution as defined by $dte.Solution object for a project itme of type 'Solution Folder' with the given name.
The found folder is returned as a [nvDTE80.SolutionFolder] object
Get-SolutionFolder 'Feature'Returns the filename and path of a given Visual Studio Template as requested. An additional filter value can be supplied to check that the path of the template matches a specific location/type
$DefaultVisualStudioInstall = 'C:\Program\VS'
Get-VisualStudioTemplate -TemplateName 'TDS Project.vstemplate'
'C:\Program\VS\Templates\TDSProject.vstemplate' Get-VisualStudioTemplate -TemplateName 'Class.vstemplate' -FilterValue '*Web\CSharp*
'C:\Program\VS\Templates\Custom\Web\cSharp\Class.vstemplate'Creates a new Empty Web Application Project named $ModuleName, under the $Layer folder
IMPORTANT: before this can be ran you must 'wake-up' the $dte object by running the following:
$dte.Solution.FullNameIf you do NOT 'wake-up' the console Visual Studio will freeze when creating the Empty Web Application Project
Invoke-CreateModule -ModuleName "Coffeehouse.Foundation.Search" -Layer "Foundation" Invoke-CreateModule "Coffeehouse.Foundation.Search" "Foundation"Create and setup a new module project into any layer with the option for assocated serialization projects/folders to be created.
IMPORTANT: before this can be ran you must 'wake-up' the $dte object by running the following:
$dte.Solution.FullNameIf you do NOT 'wake-up' the console Visual Studio will freeze when creating the Empty Web Application Project
Invoke-NewModule -ModuleName "Ad" -Layer "Feature" Invoke-NewModule -ModuleName "Ad" -Layer "Feature" -UseTDS Invoke-NewModule -ModuleName "Ad" -Layer "Feature" -UseUnicorn Invoke-NewModule -ModuleName "Ad" -Layer "Feature" -SitecoreVersion "8.2.171121" Invoke-NewModule -ModuleName "Ad" -Layer "Feature" -SitecoreVersion "8.2.171121" -UseUnicornCreates a serialization project for the named module
Invoke-SerializationProject -ProjectName "Coffeehouse.Foundation.Search" -Layer "Foundation" -UseTDS Invoke-SerializationProject "Coffeehouse.Foundation.Search" "Foundation" -UseTDSRetrieves the active solutions path to its 'src' folder
$rootPath = Invoke-SolutionRootPath
$rootPath
C:\Code\Coffeehouse.Demo.SC9\srcCreates a new Visual Studio Solution at the given Directory Path with base folders
File System will look like the following
- Directory Path -- Solution Name -- SolutionName.sln -- lib -- __Documents -- __Scripts -- src --- Feature --- Foundation --- Project
Invoke-VisualStudioSolution -SolutionPath "C:\Code" -SolutionName "Coffeehouse.Demo.SC9" Invoke-VisualStudioSolution "C:\Code" "Coffeehouse.Demo.SC9"Writes a message in the following format to the screen, useful for delineating major steps taken. This will span the entire screen width. [ ------------- $TASKNAME : $TASKTYPE ------------]
Write-StepHeader -TaskName "Create the World" -TaskType "Creation"