Created
May 7, 2018 20:51
-
-
Save tillig/193af9315eba0feca025d3f6ebc27aee to your computer and use it in GitHub Desktop.
Analyze .csproj Set With PowerShell
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
Get-ChildItem -Path C:\path\to\project\root -Filter *.csproj -Recurse | | |
Select-Xml -Namespace @{msb="http://schemas.microsoft.com/developer/msbuild/2003"} -XPath "//msb:TargetFrameworkVersion" | | |
Select-Object -Property @{Name="TargetFrameworkVersion"; Expression={$_.Node.InnerXml}} | | |
Select-Object -ExpandProperty TargetFrameworkVersion | | |
Group-Object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment