有人可以帮我设置 Logger 的详细程度吗? http://msdn.microsoft.com/en-us/library/microsoft.build.utilities.logger.verbosity(v=vs.100).aspx
logger.Verbosity = "Normal";
//doesn't work
logger.Verbosity = 1;
//doesn't work
有人可以帮我设置 Logger 的详细程度吗? http://msdn.microsoft.com/en-us/library/microsoft.build.utilities.logger.verbosity(v=vs.100).aspx
logger.Verbosity = "Normal";
//doesn't work
logger.Verbosity = 1;
//doesn't work
您必须使用LoggerVerbosity
-Enumeration:
using Microsoft.Build.Framework;
// ...
logger.Verbosity = LoggerVerbosity.Minimal; // For example (see link for more values).
试试这个:
logger.Verbosity = LoggerVerbosity.Normal
要设置Normal
详细程度,您需要:
logger.Verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal;