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

When will DataMiner support C# 8.0 and 9.0

Solved1.55K views19th July 2023CSharp
8
Jens Vandewalle [SLC] [DevOps Enabler]9.44K 11th February 2021 2 Comments

Currently the latest version of DataMiner supports C# 7.3. When will it support C# 8.0 and 9.0?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th July 2023
Toon Casteele [SLC] [DevOps Enabler] commented 11th February 2021

What area of DataMiner are you talking about exactly? The versions you mention are C# language versions and are only relevant when coding. The only parts I know of in DataMiner where you can insert actual C# code are Automation scripts and Protocol QActions. Are those the ones you’re referring to?

Jens Vandewalle [SLC] [DevOps Enabler] commented 11th February 2021

Hi Toon, I want to use this in Automation Scripts and Protocol QActions.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
7
Tom Vanacker [SLC]10 Posted 11th February 2021 3 Comments

I'm going to assume you are talking about using new C# features in driver scripts, which runs in the SLManagedScripting process if I recall correctly.

In previous versions of C#, many of the features were simply "syntactic sugar", meaning the only thing you required was a compiler (Roslyn) update, and you were good to go. It didn't really matter if you were on .NET 4.5 or 4.6 or other framework versions.

Unfortunately, starting with the features in C# 8.0, they are now also tied to the underlying framework. For C# 8.0 this is now .NET Core 3.0 (or more likely it's successor .NET 5). This means that we cannot simply update the Roslyn compiler used to compile scripts anymore. Writing code in C# 8.0 will never run on the .NET framework.

We will first need to target .NET Core 3.0 or higher. This is not going to be an easy process since a lot of the windows-only technologies that we are using today (COM, WCF, .NET Remoting, Win32 API calls) are windows only and not supported on .NET Core.

It's unfortunate that C# 8.0 features cannot be used right now but we will get there eventually 🙂

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th July 2023
Lander Vanhaverbeke [SLC] [DevOps Member] commented 11th February 2021

Not all, but some features of C#8 and C#9 don’t need .Net Core. For the Cube projects, we’re currently moving to C#9 with .Net Framework.

A (not-complete) list of features that work with .Net Framework:

Record types
Init-only setters
Pattern matching enhancements
Target-typed new expressions
Target-typed conditional expressions
Using declarations
Null-coalescing assignment (x ??= y; instead of x = x ?? y;)
@$”…”

Tom Vanacker [SLC] commented 11th February 2021

That’s a very interesting remark Lander, are you using a nuget package for this?

Lander Vanhaverbeke [SLC] [DevOps Member] commented 11th February 2021

For most features you don’t need to add anything, just change the langversion to 9.0.

To use ValueTuple you need the System.ValueTuple dll and for records you need to add one (empty) type in your code base.

See http://devcore3/review/#/c/44759/ for the changes we did in the Cube projects.

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