Marfusios / bitfinex-client-websocket

🛠️ C# client for Bitfinex & Ethfinex websocket API version 2.0
Apache License 2.0
55 stars 38 forks source link

Install via NuGet: Target Framework 2.0 Error #33

Closed NEA8 closed 5 years ago

NEA8 commented 5 years ago

Hello,

I have the following error when trying to install via NuGet:


Severity Code Description Project File Line Suppression State Error Could not install package 'Bitfinex.Client.Websocket 3.0.91'. You are trying to install this package into a project that targets '.NETFramework,Version=v2.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Even though I have choose the .NET 2.0 Version (see screenshot):

grafik

Im a newbie what I' doing wrong?

Marfusios commented 5 years ago

Hello @NEA8

.NET Framework 2.0 is really really old, like 2002 year. The library targets .NET Standard 2.0 which is API subset for all targets (.NET Framework, .NET Core, Mono, etc). Here is a compatibility table: image link

So you need to target .NET Framework 4.6.1 (Windows only) or .NET Core 2.0 (multiplatform, Windows, Linux, MacOS).

NEA8 commented 5 years ago

Dear Marfusios,

I'm sorry for the late answer. I was on hollyday. It works now. I have configured my projekt to the ".Net Framework 4.6.1" but I have the same error. My mistake was that I did not activate the checkbox for the project I wanted. Newie mistakes :).

NEA8