I want to make an import dependent on which target I call MSBuild with from the commandline but I'm having a hard time figuring out how to programatically access the target name(s) the .proj file was called with
i.e.
<Import Project="some.targets" Condition="$(TargetName) == myTarget"/>
In general is there a way to dump all defined environment variables that exist at proj file runtime?