13

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.

Won
  • 1,795
  • 2
  • 12
  • 22
  • 3
    Dupe of http://stackoverflow.com/questions/11932164/what-parameters-does-visual-studio-pass-to-msbuild – Jimmy May 14 '13 at 15:30
  • Thanks, Jim. I might need an add-on to render final MSBuild command prior to compiling output even VS doesn't run MSBuild internally. – Won May 14 '13 at 20:00

1 Answers1

2

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.

Martin Ullrich
  • 94,744
  • 25
  • 252
  • 217