doghappy / socket.io-client-csharp

socket.io-client implemention for .NET
MIT License
715 stars 124 forks source link

Pack dependencies resolving the wrong dll SocketIo.Core instead of SocketIO.Core #337

Closed jfloodnet closed 10 months ago

jfloodnet commented 10 months ago

Version: 3.1.0 Nuget seems to be pulling in a transient reference to this library https://github.com/Beffyman/SocketIo.Core when using .Net 6

Follow the dependency chain here https://www.nuget.org/packages/SocketIOClient/#dependencies-body-tab

You will see that it pulls in Beffyman's dll.

This causes a runtime exception:

System.TypeLoadException: Could not load type 'SocketIO.Core.EngineIO' from assembly 'SocketIo.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

From looking at your publish file you are not packaging a SocketIO.Core of your own.

https://github.com/doghappy/socket.io-client-csharp/blob/master/azure-devops/publish.yml

Downgrading to 3.0.8 solves it

doghappy commented 10 months ago

Some packages are owned by other people, I cannot push those packages to nuget, I tried contact author to let them transfer the package to me.

The good news is that they agree and already transferred packages to me.

Thanks Beffyman

Thanks tobias.schulz186

doghappy commented 10 months ago

The issue was solved

doghappy commented 10 months ago

https://github.com/Beffyman/AspNetCore.Client/issues/102