Possible Duplicate:
Parser for C#
Any (free) libraries that can parse C# source code and make a DOM of it?
I need to add an attribute to all classes in bunch of .cs files and then compile them to an assembly. This needs to be done in an asp.net application, so I'm not interested in Visual Studio plugins or similar.
I need to achieve this
input: ~/plugins/MyPlugin/MyPlugin.cs
public class MyPlugin : PluginBase, IEntitySavingPlugin
{
}
output: Plugins.dll
[PluginDirectory("~/plugins/MyPlugin/")]
public class MyPlugin : PluginBase, IEntitySavingPlugin
{
}