0

I've a simple class (600 lines) that I compiling by CompileAssemblyFromSource method.

This method take over than 1 minute to finish, I tried to compile the code directly in Visual Studio and it takes less than one second...

What's wrong? How can I speed up my dynamic compilation?

Thare are some options That I can try?

Thank you for your help.

Matteo Fioroni
  • 103
  • 2
  • 4
  • Did you debug/profile your process to see what step exactly takes so long? Without your code nobody can say what might be wrong. – thehennyy Aug 03 '16 at 06:26
  • Possible duplicate of http://stackoverflow.com/questions/37723406/c-sharp-reflection-compileassemblyfromsource-slow – Nathan Swannet May 19 '17 at 09:54

0 Answers0