launchdarkly / dotnet-eventsource

Server-sent events (SSE) client implementation for .NET
Other
49 stars 16 forks source link

Error when importing because of dependencies of LaunchDarkly.Logging #96

Closed Morgan-6Freedom closed 1 year ago

Morgan-6Freedom commented 1 year ago
image

Assembly 'Assets/netstandard2.0/LaunchDarkly.EventSource.dll' will not be loaded due to errors: Unable to resolve reference 'LaunchDarkly.Logging'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.

kinyoklion commented 1 year ago

Hello @Morgan-6Freedom,

Is this attempting to build the event source project, or attempting to build a project you have integrated it with? If it is a project you have integrated it with, then is it possible to get some configuration information.

I do not see any similar problem when building this project, but I could see this being a problem with an ASP.Net project, most likely requiring a binding redirect.

Thanks, Ryan

kinyoklion commented 1 year ago

Actually, this appears to be a Unity project. We do not officially support Unity, so I am not certain what kind of problems you may encounter.

Morgan-6Freedom commented 1 year ago

It worked when I imported also the logging DLL :

image
kinyoklion commented 1 year ago

Yeah, the package does depend on LaunchDarkly.Logging, and it is a dependency for this project as well as also a dependency in nuget.

You can view the dependencies there as well. https://www.nuget.org/packages/LaunchDarkly.EventSource/5.0.1#dependencies-body-tab