Hi,
I've created an automation script in DIS, which I've published to a DMA, this script fails validation, but Visual Studio is happy. Validation is failing on the first line of the script
using System;
I don't understand why it is failing there. We have lots of scripts that start way. I tried to create a new script directly in the Cube editor, containing only the using System; with nothing else and that also fails validation.

As you can see, there really is nothing in this script, so I don't understand why validation is failing at this point. Any help will be greatly appreciated.
If it's of relevance, the machine running Cube is running Server 2025
Hi Chris,
When creating the script, SLAutomation will look for a string "class Script" in the code. If that is not present, it will take the provided content and put it inside such a class (for more info, see Script class).
This behavior is done unless the script is marked to be compiled as a library.