I am working with integrating a custom file type into my C#-project which should be built into the assembly like a regular C# file (after transpiling the custom format to C# code).
I'm trying to figure out how to do this with MSBuild and a custom task, so I'm not depending on Visual Studio to be able to use my custom format.
I have played around with Microsoft.Build.Framework.dll, but I have yet to discover which parts to use for feeding my transpiled C# code into the CSC compiler to make it compile that into the final assembly.
Any pointers as to how to go about this?