We're running Cloud Native .NET in Brighton, 26th-27th April 2018. High quality training for building .NET Core, distributed, production ready systems.
Extracting Information From MsBuild
Recently as part of some research into making a large (very large) solution build more efficient, I started looking into whether there's anyway of getting MsBuild to do
some of the donkey work for you. This is especially important in situations where you want to know what's being used/produced with this particular set of parameters.
Obviously dealing with every possible custom build target is out of scope, but you can get a surprisingly long way by taking advantage of some of the intermediate build
targets used within the MsBuild Common targets files (imported into every *proj file created by Visual Studio).
Create yourself a little file called something like Analyse.proj, and put the following in it: