简体   繁体   中英

Extracting msbuild commands from visual studio

Is there any way I can extract msbuild commands from visual studio 2012/2015. I am creating a command line tool where I have to write msbuild commands "manually" for the various C# projects. I wonder if it's possible to extract these commands directly from visual studio, so I will just copy & paste those commands in my tool.

ProcMon from SysInternals allows you to intercept "ProcessCreate" events.

Try running it during the build of your solution and setting a filter to Process Name = "MSBuild"

This will intercept all windows events for MSBuild including process creation. If you display the event properties you can see the command line that created its process.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM