Monday, July 11, 2022

[FIXED] How do I output messages to the Visual Studio output window, from MSBuild?

Issue

I have tried adding <Message> elements to tasks in a Visual Studio project file, in order to debug the build process. However, the elements have no effect on the text that is written to the Visual Studio output window.

Is there a way to write messages to the Visual Studio output window, by adding markup to the project being built?


Solution

This may help:

Under ToolsOptionsProjects and SolutionsBuild and Run, there’s the MSBuild project build output verbosity combo box. This controls how much info you want to see in the Output window.



Answered By - Nikola Smiljanić
Answer Checked By - Willingham (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.