First you need to compile it into a dll or exe file, i.e. build .NET and then use it as input for xsd.exe
If you want to convert only a specific class, use the following command:
xsd bin\Release\MyAssembly.exe /type:The.FullName.Of.YourType
source share