Skip to content

Instantly share code, notes, and snippets.

@kentcooper
kentcooper / update-item-templates-add-sortOrder.ps1
Last active August 29, 2015 14:24 — forked from sayedihashimi/update-templates-for-aspnet5.ps1
Adds SortOrder to all the SideWaffle VS Item Templates
$files = Get-ChildItem D:\GitHub\side-waffle\TemplatePack\ItemTemplates *.vstemplate -Recurse | % { $_.FullName }
foreach($filePath in $files){
[xml]$templateXml = Get-Content $filePath
$updatedFile = $false
'Processing [{0}]' -f $filePath | Write-Host
if($templateXml.VSTemplate.TemplateData.SortOrder){
' Found SortOrder'|write-host