Beta 2 – Getting Build Verbosity

In Beta2, there’s a new Tools Option page under “Projects and Solutions”, “Build and Run”, which includes a Build verbosity setting.

When hosting MsBuild, we currently create a BuildLogger object. How do we ensure it picks up the verbosity setting set by this page Is there a mechanism to obtain a correctly set BuildLogger, or do we have to examine the option setting and create our own logger. If the latter, how do we get the value of this property

I also noticed that the Managed Package Framework doesn’t appear to have been updated to deal with this new setting.

Thanks in advance.

Mark.



Answer this question

Beta 2 – Getting Build Verbosity

  • Jay23

    Mark,

    You'll have to examine the option setting yourself. It's stored in the registry, in the VS registry root (default is "HKCU\Software\Microsoft\VisualStudio\8.0"). You can obtain the location of the virtual registry root by getting the VSSPROPID_VirtualRegistryRoot property on the IVsShell interface. The setting is stored in the "General" key, value name "MSBuildLoggerVerbosity". It's a DWORD and ranges from 0 (quiet) to 4 (diagnostic). If it's not present, default is 1 (minimal).

    We'll try to make this setting more accessible for RTM. I've also notified the managed package framework owners about the issue.

    thanks,
    Lukasz
    MSBuild Team

  • StarBrand123

    Lukasz, sorry for the delay in responding. Just to confirm your answer works fine for us.
    Cheers
    Mark.

  • Beta 2 – Getting Build Verbosity