vsregedit

How to change the Visual Studio build output verbosity through scripting?

懵懂的女人 提交于 2020-08-10 13:02:38
问题 Note, that I am not talking about msbuild output verbosity, but about devenv - the IDE: It uses registry for that. However, in VS 2015 the registry keys were clear and the following simple script did the job: Param( [Parameter(Mandatory)][ValidateRange(1,4)][int]$level ) $path = "HKCU:\Software\Microsoft\VisualStudio\14.0\General" Set-ItemProperty -Path $path -Name MSBuildLogFileVerbosity -Value $level -Type DWord Set-ItemProperty -Path $path -Name MSBuildLoggerVerbosity -Value $level -Type