You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I struggled to find documentation on the format of the PInvoke generator when XML output mode is chosen.
In my case I am generating bindings for a 3rd party library (i.e. I have no control over the C++ headers I am feeding into the generator) and I see the need to perform some customisations on the generated code. To that end I decided to simply generate the XML output from the ClangSharp generator, parse the XML and generate code myself. The customisations I need are very specific to my project, so I don't feel there is value to contribute with extensions for the C# source generator.
But it would be great if there was a simple way to parse the resulting XML. Either through an XSD or even .NET XML Serialization DTO types. (Of course either one could be generated from the other).
If it doesn't already exist, I'd be happy to contribute both an XSD and/or serialisation types to the ClangSharp project.
The text was updated successfully, but these errors were encountered:
I struggled to find documentation on the format of the PInvoke generator when XML output mode is chosen.
In my case I am generating bindings for a 3rd party library (i.e. I have no control over the C++ headers I am feeding into the generator) and I see the need to perform some customisations on the generated code. To that end I decided to simply generate the XML output from the ClangSharp generator, parse the XML and generate code myself. The customisations I need are very specific to my project, so I don't feel there is value to contribute with extensions for the C# source generator.
But it would be great if there was a simple way to parse the resulting XML. Either through an XSD or even .NET XML Serialization DTO types. (Of course either one could be generated from the other).
If it doesn't already exist, I'd be happy to contribute both an XSD and/or serialisation types to the ClangSharp project.
The text was updated successfully, but these errors were encountered: