1

I am working with Visual Studio Community 2019 in Windows 10. I have a solution which has multiple projects of different types.

I open that solution in Visual Studio Community 2019. Then click on "Build > Rebuild Solution" menu option to rebuild it. In the Output tab I can see output from Build. That output shows me the result of rebuild but it does not show me what command(s) were issued to start the rebuild. How can I see those command(s) issued by Visual Studio?

I want to know what happens so I can write a script (window .bat or powershell) to do it outside of VStudio if needed.

Thanks

tgolisch
  • 6,549
  • 3
  • 24
  • 42
ChumboChappati
  • 1,442
  • 4
  • 18
  • 38
  • 1
    There's not much difference between build and rebuild. Basically, "build" means if stuff needs to be updated then do a rebuild, and "rebuild" means do a rebuild always. https://stackoverflow.com/a/17781143/395718 – Dialecticus Oct 06 '21 at 16:19
  • 1
    Do you just want to know what happens, or are you asking because you want to automate them outside of VStudio (eg. Jenkins build) – tgolisch Oct 06 '21 at 16:28
  • @tgolisch I want to know what happens so that I can write a script (window .bat or powershell) to do it outside of VStudio if needed – ChumboChappati Oct 06 '21 at 16:37

1 Answers1

0

Visual Studio builds use MSBuild. You could increase the build verbosity to get a massive dump of text, but I recommend using the Project System Tools plugin to record binary build logs for export to MSBuild Log Viewer.

Joe Sewell
  • 6,067
  • 1
  • 21
  • 34