I'm working on resource automation and pulling apart the SRM Use Cases Demo 1.0.2 package for inspiration.
Loading SRM.ApplyProfileToResource into a solution, it references SLSRMLibrary and SLCodeLibrary.
I can see from here there's a new NuGet dev pack, which I've changed the namespace for what's detailed on that page from Skyline.DataMiner.Library.Solutions.SRM to Skyline.DataMiner.Core.SRM, but there are some other namespaces in that script that still aren't happy, what NuGet packages are needed, and what do the namespaces change to, if they do?
using Skyline.DataMiner.Library;
using Skyline.DataMiner.Library.Automation;
using Skyline.DataMiner.Library.Automation.UserInterface;
using Skyline.DataMiner.Library.Exceptions;
using Skyline.DataMiner.Library.Resource;
using ErrorInfo = Skyline.DataMiner.Library.Automation.UserInterface.ErrorInfo;
Hi Philip,
Visual Studio should normally suggest the correct namespace if you hover over the error, that will probably help to fix the errors.
Think the list bellow should be enough:
using Skyline.DataMiner.Core.SRM;
using Skyline.DataMiner.Core.SRM.Exceptions;
using Skyline.DataMiner.Core.SRM.Extensions;
using Skyline.DataMiner.Core.SRM.Extensions.Resources;
using Skyline.DataMiner.Core.SRM.Utils;
using Skyline.DataMiner.Core.SRM.Utils.Automation;
using ErrorInfo = Skyline.DataMiner.Core.SRM.Exceptions.Errors.ErrorInfo;
Note that to run your script you will need to have SRM package 2.0.1 installed in your DMA, so all other script will also need to be compatible with that SRM version.
Also note that SRM Use Cases Demo is not yet compatible with the SRM nuget dev package.
I see that this question has been inactive for some time. Do you still need more information for this? If not, could you select Jorge’s answer to indicate that the question is resolved?