Won
Won

Reputation: 1805

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.

Upvotes: 13

Views: 9291

Answers (1)

Martin Ullrich
Martin Ullrich

Reputation: 100543

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.

Upvotes: 3

Related Questions