I have some C# source code (but no project or build files for it). One of the files is a .xsd file that is converted to C# code via xsd.exe. How can I add that to a C# project so that hitting "build" will automatically run the xsd file though xsd.exe and produce a C# file?
Also, how do I get the xsd file to appear in the resources of the final exe file (the code seems to load it via GetManifestResourceStream)