Coinio / Bittrex.Api.Client

A C# http client wrapper for the Bittrex cryptocurrency trading platform api
MIT License
13 stars 12 forks source link

CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. #15

Closed lestat2k7 closed 6 years ago

lestat2k7 commented 6 years ago

Hi,

When I am using your client.GetBalances() method right off the bat I am getting this error: https://stackoverflow.com/questions/44652434/type-object-is-defined-in-an-assembly-that-is-not-referenced-net-standard-2-0

I even installed vs 2017 15.5 and still the same error. If I manually add netstandard.dll from nuget/packages folder, the entire project fails to compile due to tons of errors like string not defined etc, duplicates.

Any idea how to fix this?

Never saw this issue before.

Coinio commented 6 years ago

I'll take a look this weekend.

lestat2k7 commented 6 years ago

thx a lot man.

Coinio commented 6 years ago

I've tried creating a new .NET 4.6.2 project and importing the nuget package and running the GetBalances() method and it works fine. Is your project definitely targeting the correct .NET version (i.e. 4.6.1 onwards) and have you installed the .NET Core 2.0 SDK on your development machine?

lestat2k7 commented 6 years ago

Hi I just switched to .NET 4.6.1 in VS 2015: https://imgur.com/a/oFFjQ

still same.

Coinio commented 6 years ago

As far as I know in order to get .NET Standard 2.0 packages to work you will need the .NET Core 2.0 SDK installed (https://www.microsoft.com/net/download/windows) and run Visual Studio 2017.