Salutations,
I have a community Class Library that is using the new DataMiner DevPacks. The Class Library targets Skyline NuGet packages with version 10.2.10.1, and the manifest has the MinimumRequiredVersion set as 10.2.2.0 - 11371.
I am then using the Class Library in a solutionized protocol that is also using DataMiner DevPacks, and also has MinimumRequiredVersion set as 10.2.2.0 - 11371.
When DIS generates the QAction_63000 project it is using Skyline NuGet packages with version 10.0.0.5, which causing code errors. There are some architectural changes between 10.0.0.5 and 10.2.10.1, which can be simply fixed by updating the NuGet packages on 63000.
But if QAction_63000 is rebuilt for any reason it will default to 10.0.0.5 again. Ideally 63000 would either use the MinimumRequiredVersion or something similar to determine the required DataMiner DevPacks version.
Error in QAction_63000:
The protocol.DeleteRow() resides in QActionHelperBaseClasses.dll in 10.0.0.5, but in 10.2.10.1 is in SLManagedScripting.dll. Not sure why [DllImport("QActionHelperBaseClasses.dll")] is not resolving this.
Interestingly there are no errors in QAction_ClassLibrary:
Even though QAction_ClassLibrary is using 10.0.0.5 it is able to resolve QActionHelperBaseClasses so no errors are present.
Base Class Library: 1.2.2.5
DIS Version: 2.39.1.26
Hi Aston
DIS (2.39) does indeed not yet install a DevPack based on the MinimumRequiredVersion tag. There are plans on having that in DIS is some way. Currently DIS looks at the latest version of the 10.0.0 range (current minimum supported version of DataMiner).
Regarding QA63000, this will remain a manual action for now to keep it the same as the other QActions. I would advise to use the NuGet manager on solution level to easily have an overview of all the projects.
In the (near) future when DM 10.1 becomes the minimum supported version, then DIS will also be updated to not used the Generated Class Library anymore, but you will be able to use the Class Library as a NuGet. Currently this is only internally possible, but the Class Library as NuGet for external is on the roadmap.
Hi Michiel,
Thanks for your detailed reply.
Hopefully DIS will support MinimumRequiredVersion in a future release. As you have transitioned to using DevPacks I think it will benefit with having more granular versioning of Skyline NuGet Packages. Adopting new features will be easier plus should cater for different system versions, rather than having a fixed setting in DIS.
Look forward to seeing what you have installed for the next release 🙂