Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to version 3.1.1 leads to error CS0118 #350

Open
deleojur opened this issue Jan 3, 2024 · 2 comments
Open

Updating to version 3.1.1 leads to error CS0118 #350

deleojur opened this issue Jan 3, 2024 · 2 comments

Comments

@deleojur
Copy link

deleojur commented Jan 3, 2024

I'm not sure whether this is a NuGet problem or a problem specific to this package, but updating to version 3.1.1 leads to some packages not being loaded. This is no problem with version 3.0.8.

It seems to depend on how the package is represented in the Packages folder structure of the project Dependencies.
This works fine:

image

This leads to Error CS0118 'SocketIO' is a namespace but is used like a type:

image

Updating to version 3.1.1. means that I have to downgrade to version 3.0.8., then upgrade to version 3.1.1. and hope that it is loaded as shown above. Otherwise, I have to keep repeating this process until it does. I need version 3.1.1. since it otherwise results in issue #349.

If the obj and bin folder have to be deleted, for example when the project binary files cannot be copied properly, this error reoccurs.
Any help would be greatly appreciated.

@deleojur
Copy link
Author

deleojur commented Jan 6, 2024

I fixed this with the help of a colleage:

using SocketIOClass = SocketIOClient.SocketIO;

private SocketIOClass client = new SocketIOClass();

@doghappy
Copy link
Owner

doghappy commented Jan 10, 2024

namespace conflict, caused by this lib, I will find a better solution to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants