Coder Social home page Coder Social logo

Comments (9)

Emzi0767 avatar Emzi0767 commented on May 26, 2024

2.0.0-rc has a WS4Net provider, and can be used under Windows 7 (both via .NET Core and .NETFX). Code on master branch is being slowly obsoleted in favour of code on netcore branch. If you want to submit a PR, feel free to do so, however I'd prefer if the WS4Net code was provided as an alternative to the default one, rather than a replacement.

from dsharpplus.

bodziowolf avatar bodziowolf commented on May 26, 2024

netcore requires windows 10 creators update as it requires .net 4.7.0 package :D

2.0.0-rc corresponds to master or different branch? Maybe its possible for me to use it instead.

from dsharpplus.

Emzi0767 avatar Emzi0767 commented on May 26, 2024

2.0.0-rc is the netcore branch, and it only requires .NETFX 4.7 to build (that was also disabled recently, until AppVeyor gets support for thereof, for now it just caps off at .NETFX 4.6.2). You can run it on .NETFX 4.5.2+, .NET Core 1.0+, and any other platform targeting .NET Standard 1.1+ (such as Xamarin, Universal Windows Platform, Windows 8 Metro, Windows Phone 8).

If you want to use 2.0.0, you want to do so via NuGet or MyGet. Check pre-release in your NuGet window, and install DSharpPlus. If you want to use the WS4Net or WS# provider, install DSharpPlus.WebSocket.WebSocket4Net or DSharpPlus.WebSocket.WebSocketSharp respectively. The former is preferred, as it is more stable.

To use the MyGet feed (which generally contains more recent builds), add https://www.myget.org/F/dsharpplus-nightly/api/v3/index.json to your NuGet sources first.

After it's installed, call client.SetSocketImplementation<WebSocket4NetProvider>() or so.

from dsharpplus.

bodziowolf avatar bodziowolf commented on May 26, 2024

Installing NuGet prerelase + WebSocket4Net solved my trouble as well :)

I also see that WebSocket4Net and WebSocketSharp do not support .netcore, I'll try to tinker with this when I have some time.

from dsharpplus.

Emzi0767 avatar Emzi0767 commented on May 26, 2024

They don't, because the underlying libraries do not support .NET Standard.

from dsharpplus.

Emzi0767 avatar Emzi0767 commented on May 26, 2024

I'll close that for now, comment if you have further questions.

from dsharpplus.

bodziowolf avatar bodziowolf commented on May 26, 2024

They don't, because the underlying libraries do not support .NET Standard.

Yeah, WebSocket4Net has some .netcore support only in beta package, but that might not be stable yet.

from dsharpplus.

Emzi0767 avatar Emzi0767 commented on May 26, 2024

Problem is, these are pre-release packages. I would prefer not to rely on pre-release packages in the project, because that forces marking your project as pre-release as well. In case we go out of pre-release earlier than those packages, it will present a problem.

from dsharpplus.

bodziowolf avatar bodziowolf commented on May 26, 2024

Indeed, that would be my thoughts as well.

from dsharpplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.