I am trying to connect Jira to Rhino.
To test the Jira.SDK package I found I tested the following:
using Jira.SDK;
var jira = new Jira.SDK.Jira();
jira.Connect(path, user, password);
var issue = jira.GetIssue(key);
Console.WriteLine(issue.TimeTracking.TimeSpent.ToString());
Console.WriteLine(issue.Summary);
Console.WriteLine(issue.Status.Name);
So this works fine. The target framework for this console application was 7.0, which I know is not what Rhino used so far.
And this is the problem I am facing now.
When I add a reference to this package and try to run it, it does not do anything.
The issue with .NET Core vs .NET Framework I understand, yet very rudimentary.
But I am quite sure that the package version and the version Rhino is using is the problem, right?
But clearly I have no idea how to solve it.
what is the error you receive? Often they seem to be cryptic, but as soon as you understand the error message it is obvious what you need to do next. If I would guess, I believe it has something to do with the fact that Rhino8 runs on Net Core 7
Other than, I’m using Jira on a daily basis, but just out of curiosity, what problem are you trying to solve?
If you are facing compatibility issues, another solution would be to let an dedicated console app communicate with Rh/Gh using any form of InterProcessCommunication(LocalTCP, Named Pipes, Files etc.)
Are you sure that it’s even loaded? Ensure to compile it for Net7, or activate compatibility mode for Framework 4.8 in Rhino 8, and also check if the library is within valid search paths…
I installed the package. But I am not sure if this is what you mean by if it’s even loaded…
Ensure to compile it for Net7, or activate compatibility mode for Framework 4.8 in Rhino 8, and also check if the library is within valid search paths…
I think this goes beyond my capabilities. Would it be asked too much to explain this a bit more in detail?
@TomTom
I think I got a very important update.
I detected that in the debug folder for net7.0 the dlls connected to the atlassian.SDK were not copied. After copying them it works!
Does this have to do with the question if it’s even loaded?
Yes, I have suspected that your plugin or one of the dependencies was not in a folder which is considered to load from. Usually you should always be able to attach a debugger and hit a breakpoint given that the pdb is up-to-date. With DNSpy you can even attach a debugger, without any pdb’s present. This can also be quite useful in such scenarios.
I had to load the JIRA SDK assemblies manually and make sure all dependencies were copied into the Rhino plugin folder so it wouldn’t throw missing reference errors at runtime.