Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show MSBuild command during build or package in output window of Visual Studio IDE?

When Visual Studio build or package Solution, output window comes with

------ Build started: XXXX...

But, can I see actual command to execute MSBuild with every switches, which are configured in Project/Solution? Such as

c:\xxx\yyy\MSBuild.exe /t:compile /switches ...
------ Build started: XXXX...

I want to make a script to automate a packaging process. I can create it by myself, but it'd be helpful if I can see that.

like image 854
Won Avatar asked Jan 30 '26 02:01

Won


1 Answers

Microsoft proviedes the ProjectSystemTools extension that allows you to do build logging. It can log both the design time builds (e.g. what happens when you load the project or when NuGet restores packages) as well as the actual build processes.

like image 163
Martin Ullrich Avatar answered Feb 02 '26 00:02

Martin Ullrich