Hi,
I'm trying to use the Skyline.DataMiner.Dev.Common nuget(v 10.4.2.6). I've added the following assemblies
using Skyline.DataMiner.Core.DataMinerSystem.Common;
using Skyline.DataMiner.Core.DataMinerSystem.Automation;
In Visual studio everything is happy with no errors but when i upload the package to my agent i get these kind or errors:
the type or namespace name does not exist in the namespace (are you missing an assembly reference )
So it seems it doesn't import the dev.common nuget correctly.
what is going on?
Edit: tested with latest version but same issue.
Hi Gerwin,
Can I assume that the nugets that you added to your project (automation script) are the following:
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Skyline.DataMiner.Core.DataMinerSystem.Automation
- Skyline.DataMiner.Dev.Common
If this is the case. Can you verify that the first two nugets are of the same version. This can be already cause this problem.
Next to this the "Skyline.DataMiner.Dev.Common" nuget should be linked to your DataMiner version where you will deploy your package too. As I can see you added the version 10.4.2.6. I assume now that you are deploying this to a 10.4.2 DataMiner version? If your DataMiner version is below 10.4.2, it can cause your script to throw these exceptions.
Hope this helps.
Can you describe how you deployed the script?
Was this done by a DMAPP package or via other means?
It could be that the nugets were not deployed along the script. You can verify this by going to the Skyline DataMinerProtocolScriptsDllImportskyline.dataminer.dev.common and check if the version 10.4.2.6 is present on all DMAs of that system.
both through an gitlab pipeline which build an dmapp and through dis publish to an local dma. Both have the same issue. i’ll check the location
Checked the location and i;ve only have version with 1.x. etc. So the file isn;t packaged.
+ there is no .dev. only .core.dataminersystems
I’m missing the using Skyline.DataMiner.Dev.Common;
But if i add that i get an error:
he type or namespace name ‘Dev’ does not exist in the namespace ‘Skyline.DataMiner’ (are you missing an assembly reference?)
I’m having both nugets:
Skyline.DataMiner.Dev.Common
Skyline.DataMiner.Dev.Automation
on version 10.4.2.6 and i’m targeting version 10.4.2