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

.net 6.0 System.Text.Json conflict #344

Open
seshonaar opened this issue Nov 13, 2023 · 0 comments · May be fixed by #367
Open

.net 6.0 System.Text.Json conflict #344

seshonaar opened this issue Nov 13, 2023 · 0 comments · May be fixed by #367

Comments

@seshonaar
Copy link

Hello,

I have an issue when trying to use the client in a .net 6.0 project. Because the socketio client project is targeting netstandard, a package reference to System.Text.Json package is used. Unfortunately, I cannot use the .net 6.0 json serializer anymore, because this package reference forces me to use the .netstandard v7.0.3 version (through deps.json). This creates a runtime conflict and I cannot continue.

"SocketIO.Serializer.SystemTextJson/3.1.1": {
        "dependencies": {
          "SocketIO.Core": "3.1.1",
          "SocketIO.Serializer.Core": "3.1.1",
          "System.Text.Json": "7.0.3"
        },

It would be great to add a specific target to the project for net6.0. This way the package reference would not be required anymore.
Maybe event consider have a dual targeting net4 and net6 instead of netstandard.

thompson-tomo added a commit to thompson-tomo/socket.io-client-csharp that referenced this issue Apr 7, 2024
@thompson-tomo thompson-tomo linked a pull request Apr 7, 2024 that will close this issue
thompson-tomo added a commit to thompson-tomo/socket.io-client-csharp that referenced this issue Apr 7, 2024
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

Successfully merging a pull request may close this issue.

1 participant