Hi,
I'm working on a custom chat bot command that retrieves the last BPA results. See repo here: SkylineCommunications/SLC-AS-ChatOps-BPA (github.com).
The script uses the following NuGet packages:
which results in the following DLL references when deploying the script on the agent:
The problem I'm facing is that the "AdaptiveCards" NuGet does not seem to be compatible with the latest NewtonSoft NuGet (13.0.2 in this case) which is (from what I understood) referenced in the "Skyline.DataMiner.Core.DataMinerSystem.Automation" NuGet. If I manually change the reference for the NewtonSoft NuGet to version 11.0.2 (C:\Skyline DataMiner\ProtocolScripts\DllImport\newtonsoft.json\11.0.2\lib\net45\Newtonsoft.Json.dll), then my command is working as expected.
Is there anyway to enforce the use of that specific NuGet version so I don't have to manually change this after deploying my script?
Hi,
We just released support for Adaptive Cards with ChatIntegration and also had issues with serialization/dlls during development. We found another easier way of doing it.
We added a helper method in our ChatIntegrationHelper nuget (version 1.2.0) so you can easily call `.ToJson()` on the list of AdaptiveElements. We've updated the Custom Command with adaptive card example here: https://github.com/SkylineCommunications/ChatOps-Extensions/tree/main/CustomCommandExamples