Hi,
I would like to hear if anyone are able to help me.
I have downloaded nuget package Speckle.Core, etc… with SpeckleCore2.dll v.2.3.0.0 a long time ago.
I have used it in my own Revit plug-in project to do simple queries to speckle api (REST/GQL). I use Visual Studio when debugging. It has used to work for a long time.
I have also forked the speckle-sharp repo to my own git, and cloned from there in Visual Studio again couple of years ago. These are two separate solutions; the speckle-sharp and my own solution.
I wanted to start over with clean code for the speckle-sharp solution recently, so I just backed the old project to another branch, and then made a pull-request to get latest version to my git, and then cloned again or made a pull-request in VS to the active branch, overwriting most I would expect. When I view the destination folder for the plug-in, this version holds SpeckleCore2.dll v.2.0.999.0. This corresponds to what is written as file/assembly version when opening core.csproj.
starting Connector2021 in debugging mode works. The two plug-ins are also in separate locations all together.
However, in my own plug-in project, I now get a run-time error, where calling functions in speckle core expects version 2.0.999.0 which has a slightly different structure that do not correspond to what I have coded. I find this strange, since I do not understand where there is such a reference. In my VS project I have a reference to the 2.3.0.0 version of specklecore2.dll from what I can see and understand.
The error message is: Could not load type ‘Speckle.Core.Credentials.ServerInfo’ from assembly ‘SpeckleCore2, Version=2.0.999.0, Culture=neutral, PublicKeyToken=null’
This is only run-time error, and while in the IDE, I get no error since I still use the previous version that I have always used so far, and the IDE/intellisense reflects this.
kind of messy… but I hope maybe someone experienced might have a clue to what went wrong. I could update my nuget packages in my own plug-in project, but I also do not know if this would resolve the issue because of the version numbering, as I would end up with 2.14.3
As a final note:
At some point back in time, before I started testing the code itself, I have probably installed the Speckle Revit Connector plug-in through the speckle manager. It now asks to update from 2.3.0 to 2.14.3. This one I will ignore if it does not have any impact on the aforementioned issues.