I have an XML file that I used to create an XSD File and from there generated the C# code.
However, during development I had to make some changes to that C# file. Is there a way I can use the xsd.exe tool to convert that C# file back into an XSD file? I’m hoping to avoid having to go and manually edit the XSD File.
From the C# file directly you cannot go back to the XSD file (not by using xsd.exe).
You can build back the schema from the type constructed in the C# file:
xsd.exe yourdll.dll /t[ype]:TypeYouWantASchemaFororxsd.exe yourExe.exe /t[ype]:TypeYouWantASchemaForSee the DLL and EXE File Options section from the xsd documentation.