"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > How to Enable and Configure Verbose Logging in Visual Studio Build Process?

How to Enable and Configure Verbose Logging in Visual Studio Build Process?

Published on 2024-11-05
Browse:426

How to Enable and Configure Verbose Logging in Visual Studio Build Process?

Verbose Logging in Visual Studio Build Process

To retrieve detailed information about the flags and switches utilized during the Visual Studio build process, follow these steps:

Via Menu Options:

  1. Navigate to the "Tools" menu.
  2. Select "Options."
  3. Expand "Projects and Solutions."
  4. Click on "Build and Run."
  5. Locate "MSBuild project build output verbosity" and set it to "Diagnostic."

Via Command-Line:

For more customized logging, consider adding the following flags to your command-line build command:

  • /v:diag or /v:diagnostic for maximum verbosity
  • /v:detailed for less verbose but still detailed logging
  • /v:minimal for basic logging

The Diagnostic verbosity level will provide a comprehensive log of all flags, switches, and actions performed during the build process. This log can be saved to a file or viewed in the Visual Studio Output window by setting the "Build Output" filter to "All."

Release Statement This article is reprinted at: 1729731179 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3