XmlFileLogger: diagnostic verbosity error

Dec 14, 2011 at 10:31 PM

Hi,

I’m new to MSBuild and I try to use XMLFileLogger for logging build at diagnostic level.

I’m

  • building on WinXpSP3 x86.
  • using .Net Framework v4.0.30319
  • MSBuild Extension Pack v4.0.4.0 (installed in default location - MSBuild Extension Pack Help (v4.0.4.0) )

 I start build from following batch file:

 

set dotnetfrm=C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319

set extensionpack=C:\Program Files\MSBuild\ExtensionPack\4.0

set path=%dotnetfrm%;%extensionpack%;%path%

msbuild.exe /l:XmlFileLogger,"%extensionpack%\MSBuild.ExtensionPack.Loggers.dll";logfile=build.xml;verbosity=diagnostic;encoding=utf-8 helloItem.xml

 I get following output with error:

 

Microsoft (R) Build Engine Version 4.0.30319.1

[Microsoft .NET Framework, Version 4.0.30319.239]

Copyright (C) Microsoft Corporation 2007. All rights reserved.

 

MSBUILD : error MSB4016: The build stopped unexpectedly because the "ReusableLogger" logger failed unexpectedly during initialization. Requested value 'diagnostic' was not found.

Has anyone idea what I’m doing wrong?

Thanks

Palo

Coordinator
Dec 18, 2011 at 8:48 PM

Looks like the code is trying to parse an enum and it's case sensitive so you need to change

verbosity=diagnostic

to

verbosity=Diagnostic

I'll update the docs.

Mike