0

How I can Create a dynamic class and add it to the project(creating from)?

can I create class in Build and Rebuild of my project? I mean can I handle Build and Rebuild events in my project?

thanks

Arian
  • 12,793
  • 66
  • 176
  • 300

2 Answers2

1

You can add a static file to your project, say dynamicclass.cs and modify its content in Project/Properties/BuildEvents/Pre-build event command line

L.B
  • 114,136
  • 19
  • 178
  • 224
0

You can create dynamic assemblies and then use reflector or smoother tool to create source for them. You can then add them to your project using a macro or addin or modify the csproj file.

rerun
  • 25,014
  • 6
  • 48
  • 78