1

有人可以帮我设置 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
4

3 回答 3

2

您必须使用LoggerVerbosity-Enumeration:

using Microsoft.Build.Framework;

// ...
logger.Verbosity = LoggerVerbosity.Minimal; // For example (see link for more values).
于 2013-04-02T11:07:27.540 回答
0

试试这个:

logger.Verbosity = LoggerVerbosity.Normal
于 2013-04-02T11:08:49.687 回答
0

要设置Normal详细程度,您需要:

logger.Verbosity = Microsoft.Build.Framework.LoggerVerbosity.Normal;
于 2013-04-02T11:09:27.210 回答