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
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Automation script add custom library

133 views1 day agoAutomation script solution Library
1
Ömer Eryaman [DevOps Advocate]584 2 days ago 0 Comments

Hello,

I created an automation script solution in Visual Studio.
In my project (Org.OpenAPITools), I added a custom library and tried to publish it to DataMiner.

However, my library does not appear in the DLL references inside DataMiner Cube.
What’s even more confusing is that in DataMiner Cube, there are several using statements automatically included that I never wrote in my code.

My local usings:

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Skyline.DataMiner.Automation;

using Org.OpenAPITools.Api;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Org.OpenAPITools.Extensions;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

Usings shown in DataMiner Cube (Automation Scripts):

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Skyline.DataMiner.Automation;

using Org.OpenAPITools.Api;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Org.OpenAPITools.Extensions;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
using System.Security.Cryptography;
using System.Threading.Tasks;
using Xunit;
using System.Linq;
using System.IO;
using System.Reflection;
using System.Net;
using Microsoft.Extensions.Logging;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.Json;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Collections;
using System.Text.RegularExpressions;
using System.Runtime.CompilerServices;
using System.Text.Json.Serialization;
using Polly.Timeout;
using Polly.Extensions.Http;
using Polly;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;

When validating the script in DataMiner Cube, I get around 3000 errors.

How I added the library:
I simply created a new folder in the project and copied the library files into it manually.
Visual Studio shows no errors locally.

Flavio Meneses [SLC] [DevOps Enabler] Answered question 1 day ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Flavio Meneses [SLC] [DevOps Enabler]1.16K Posted 1 day ago 0 Comments

Hi Ömer,

Are you familiar with the "Compile as a Library" feature in DataMiner? It allows you to compile your automation script as a library, generating a DLL that can be referenced by other scripts.

You can find a step-by-step guide in the DataMiner documentation via the link below. Please let me know if you have any questions about how it works or need help setting it up.

docs: Compiling a C# code block as a library | DataMiner Docs

Kind regards,

Flavio Meneses [SLC] [DevOps Enabler] Answered question 1 day ago
You are viewing 1 out of 2 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
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