ScriptRun.Compile() Out of Memory

Calling ScriptRun.Compile() reloads a huge number of assemblies on every call. I would have thought it would load assemblies on the first call only. Also, I’m not sure why its loading all these assemblies when my script does not need them.

How does it decide what assemblies to load during Compile()?

Hi Rich,

Just wanted to confirm if you’re using Scripter under .NET Core?

By default, we load SDK references in case you compile SDK/.NET Core projects, however, these assemblies are only loaded during project compilation as metadata references.

If you could send us a sample project where you’re experiencing this problem we will be able to look further at it.

Kind regards,
Dmitry