Skip to content

Instantly share code, notes, and snippets.

@tillig
Created May 7, 2018 20:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tillig/193af9315eba0feca025d3f6ebc27aee to your computer and use it in GitHub Desktop.
Save tillig/193af9315eba0feca025d3f6ebc27aee to your computer and use it in GitHub Desktop.
Analyze .csproj Set With PowerShell
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