MSBuild - where is everything?

2013-11-11 14:47:09 +0000

MSBuild - Where is everything?

MSBuild (and Visual Studio) scatter .targets and .tasks files all over the shop. Try looking in:

In PowerShell, something like this would work:

    $msbuildPaths = 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319',
            'C:\Program Files\MSBuild',
            'C:\Program Files (x86)\MSBuild'

    $msbuildFiles = Get-ChildItem -Path $msbuildPaths -Recurse -Include *.targets,*.tasks

Then you can search in those files as follows:

    $msbuildFiles | Select-String 'CodeAnalysisInputAssembly'