[ nant-Bugs-3023699 ] Build error when referencing System.Management

"SourceForge.net" <[email protected]> Thu, 01 Jul 2010 08:33:30 +0000
Newsgroups gmane.comp.windows.dotnet.nant.devel
Message-ID <[email protected]>
Bugs item #3023699, was opened at 2010-07-01 03:33
Message generated for change (Tracker Item Submitted) made by eberhard
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3023699&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Framework support
Group: 0.91-alpha1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Eberhard Beilharz (eberhard)
Assigned to: Nobody/Anonymous (nobody)
Summary: Build error when referencing System.Management

Initial Comment:
When building for .NET 4.0 and the csc task includes a reference to System.Management.dll the build fails with:

      [csc] c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Management.dll: error CS1703: An assembly with the same identity 'System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.
      [csc] c:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Management.dll: (Location of symbol related to previous error)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3023699&group_id=31650

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first