I have a question regarding the .NET SDK. When programming a connector with Visual Studio with DIS, how can I specify the .NET SDK version? Or how can I update an existing project to a newer SDK version?
Hi Michael,
To avoid confusion, the global.json file is only relevant for solutions that make use of the Skyline.DataMiner.Sdk SDK (like Automation script solutions) Such projects have the following in the csproj: <Project Sdk="Skyline.DataMiner.Sdk">. Connectors, however, do not use this SDK (you can see this because QAction project have the following in their csproj files: <Project Sdk="Microsoft.NET.Sdk">).
The NuGet you mention only specifies netstandard2.1 as possible target, but that is not supported by .NET Framework 4.8. See supported frameworks.
What you could do:
- Contact the maintainers of the repo and request if it's a possibility to also have a netstandard2.0 target included in the NuGet
- If the license allows this, build the source code and put the created DLL in the DLLs folder of the connector solution and add a reference to it from the QAction (note, if this approach is used, all transitive DLLs must also be included).