Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

XDCMake Warning XDC0012

Error Message

Creating new tag with same attributes but different content: text

This warning reports that comments for multiple <exception> tags for the same member (in source code) resulted in multiple <exception> tags in the .xml file. If <exception> tags have identical attributes and identical content, no warning is given and no duplicate tags are created.

For more information, see XDCMake.

The following sample generates XDC0012:

// xdc0012_a.xdc
<member name="T:MyClass" decl="true" source="c:\test1.cpp" line="6">
   <exception cref="MyException">User-defined exception</exception>

and then,

// xdc0012_b.xdc
// compile with: xdc0012_a.xdc xdc0012_b.xdc
// XDC0012 expected
<?xml version="1.0"?>
<member name="T:MyClass" decl="false" source="c:\test2.cpp" line="6">
   <exception cref="MyException">Another exception</exception>

Community Additions

© 2015 Microsoft