John Liu .NET

View Original

A "which command" cmdlet script

PS C:\> (get-item env:path).value.split("") | where { $_ -ne "" } | where { test-path( join-path $_ "msbuild.exe" ) }

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

 

 

Next task, make it a parameterized cmdlet