Skip to content

Instantly share code, notes, and snippets.

@dsolovay
Last active August 16, 2017 14:38
Show Gist options
  • Save dsolovay/4560507478fc729ba20634552c39be4c to your computer and use it in GitHub Desktop.
Save dsolovay/4560507478fc729ba20634552c39be4c to your computer and use it in GitHub Desktop.
Getting CodeGenData items
$csprojdirs = gci . -recurse -filter "*.csproj" | %{[System.IO.Path]::GetDirectoryName($_.FullName)} |sort|unique
$packagedirs = gci . -recurse -filter "packages.config" | %{[System.IO.Path]::GetDirectoryName($_.FullName)} |sort|unique
compare-object -referenceobject $csprojdirs -differenceobject $packagedirs
[xml]$tdsproj = gc path\to\tdsproj.scproj
$tdsproj.Project.ItemGroup.SitecoreItem | ? {$_.CodeGenData} | export-csv c:\temp\codegen.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment