XDCMake Warning XDC0002
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. ArchiveDisclaimer

XDCMake Warning XDC0002

cannot write to file: reason

XDCMake was not able to write to a .xml file. For example, the .xml file may exist, but is read only.

No .xml file is generated when this diagnostic occurs.

For more information, see XDCMake.

The following sample generates XDC0002:

// xdc0002.xdc
// compile with: xdc0002.xdc
// post-build command: attrib +R xdc0002.xml
<?xml version="1.0"?>
<doc>
<members>
<member name="T:MyClass" decl="true" source="c:\test1.cpp" line="6">
   <returns>return value from TEST1.CPP</returns>
</member>
</members>
</doc>

and then,

// xdc0002_b.xdc
// compile with: xdc0002.xdc /out:xdc0002.xml
// XDC0002 expected
<?xml version="1.0"?>
<doc>
<members>
<member name="T:MyClass" decl="true" source="c:\test1.cpp" line="6">
   <returns>return value from TEST1.CPP</returns>
</member>
</members>
</doc>
Show:
© 2016 Microsoft