Hi,
Suddenly I'm getting errors when trying to use GetDMS in an automation script. I used the snippet to and added the class library:
error CS0234: The type or namespace name 'Library' does not exist in the namespace 'Skyline.DataMiner' (are you missing an assembly reference?) error CS0234: The type or namespace name 'Library' does not exist in the namespace 'Skyline.DataMiner' (are you missing an assembly reference?)
Hi Robin,
I would suggest using the public NuGet package:
NuGet Gallery | Skyline.DataMiner.Core.DataMinerSystem.Automation 1.1.0.4
For usings:
using Skyline.DataMiner.Core.DataMinerSystem.Common;
using Skyline.DataMiner.Core.DataMinerSystem.Automation;
And then you can use:
engine.GetDms();
Hi Robin,
Sorry for the late reply, did you include the correct NuGet packages?
Can you also share what DIS version or DM version you are using?
Maybe you can push your solution to a public GitHub repo, so we can check?
Hi Michiel,
This issue is being looked at in a support ticket and will hopefully be solved.
Hi Michiel,
That just changes the error to:
error CS0234: The type or namespace name ‘Core’ does not exist in the namespace ‘Skyline.DataMiner’ (are you missing an assembly reference?)
error CS0234: The type or namespace name ‘Core’ does not exist in the namespace ‘Skyline.DataMiner’ (are you missing an assembly reference?)
It seems to work when running locally with DIS Inject but not when publishing the script and running it from cube.