I'm writing an HTML parser using SharpKit, which outputs to Javascript; but would also like to run the same code on occasion in CsQuery, which outputs a binary.
The code that I have for SharpKit almost can be directly used in CsQuery, but not quite, as:
- The namespaces have to be changed, and function/class names changed accordingly.
- I also have a couple of classes that emulate .NET classes in Sharpkit that I don't need in the CsQuery code at all.
I'd like to be able to do is keep my code synchronized by performing these changes programatically. Is this possible? The solutions here are too old to work with C# 4.0, but I feel like Rosalyn should be able to do this.