Henrik F Nielsen

Within a target I am using the MSBuild task and would like to pass the same information as were passed from the command line using the /t option but I can't find that information exposed anywhere. Is it possible to get at which targets were passed from the msbuild command line using the /t option



Re: Visual Studio MSBuild Are MSBuild '/target' command line parameters exposed inside a build project?



As far as I know this information is not exposed; you could create a property and update it in each task called and thus identify the order of tasks (roughly - as you need to take into account dependncies between tasks).

I wonder, why would you want to do that

Regards, Eugene