Last active
August 16, 2017 14:38
-
-
Save dsolovay/4560507478fc729ba20634552c39be4c to your computer and use it in GitHub Desktop.
Getting CodeGenData items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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