Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Using a library in a DataMiner Automation Script Solution

Solved1.24K views16th August 2023Automation DIS Automation script Library
1
Philip Argent [DevOps Enabler]579 15th August 2023 0 Comments

Hi,

I want to use a compiled library in a solution, but not have the automation script for it in the same solution as the script I want to reference it from.

Reading Using the library in a DataMiner Automation Script Solution it says in step one to add all automation scripts that you want to use this library to this solution, which does fit well when going to a CI/CD pipeline.

Is there a way of referencing the library dll in the solution without having DIS auto add the dll path to the DLL references? I have it referenced in the script reference section.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 16th August 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Michiel Saelen [SLC] [DevOps Enabler]5.63K Posted 15th August 2023 5 Comments

Hi Philip,

There are probably two options:

  • Create an 'automation script' and compile it as a library (as from the documentation). Then you can use this 'automation script' as a library in your other scripts. The disadvantage here is that you will have it in one solution (to prevent compilation errors). If you want to separate them, then you probably want to use the other option
  • Create a dll or NuGet that contains the library that you want to reuse. You can then add this dll/NuGet as a reference in your automation script(s). If you are using a dll, place it in the Dll folder of your solution, add it into the VS solution and reference the dll into the script project. If you are using a NuGet package, then no extra configuration work is needed. Make sure to use the publish button, dmapp package or CICD pipeline to publish as just copying the code to clipboard will not copy the dll to the DataMiner agent.
Jan Staelens [SLC] [DevOps Advocate] Posted new comment 16th August 2023
Philip Argent commented 15th August 2023

Hi Michiel,

We’re using NuGet packages for most things, but have an instance where we would want to update some values in the code globally from time to time, which is why I’m thinking using the automation script library option.

Everything works as needed, but currently we’d have to put a manual step in to remove the DLL reference when uploading any script referencing the library; so I was hoping there was an option in DIS to stop it adding the DLL reference when deploying.

Michiel Saelen [SLC] [DevOps Enabler] commented 15th August 2023

How are you publishing at the moment?
If you are using the CICD action from GitHub, I can’t immediately think of how to not push the shared library that is included in the repository. You can try to use the Feedback button in DIS (Visual Studio => Extensions => DIS => Send Feedback…) to point out the limitation.

Philip Argent commented 15th August 2023

we’re currently pushing from DIS to the DMS rather than CI/CD, but don’t need to include the dll in the include folder, as it already exists on the DMS when the precompiled automation script was added; we just need to suppress the DLL reference as the script reference does what we need.

I’ll send the feedback on the limitation thanks.

Avatar photo
Jan Staelens [SLC] [DevOps Advocate] commented 16th August 2023

We have an item on our backlog (for a while) to tackle this, I can bring it up with our PO to reprioritize.

The goal would be to give DIS built-in support to mark a NuGet or Assembly as actually being an ‘automationscript as library’ and avoid that reference getting added to the dll reference.

Initial investigations on the task found we can’t add custom properties to assemblies any more (SDK Style projects no longer allow this) so our eventual feature would likely include a custom ‘tag’ in the NuGet Description we can filter on to change behavior.

Philip Argent commented 17th August 2023

Thanks for the support on this Jan, and looking re-looking at the backlog item

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin