ccxt-net / ccxt.net

CCXT.NET – CryptoCurrency eXchange Trading Library for .NET
MIT License
196 stars 67 forks source link

getting the following errors when building the project #5

Closed lisa3907 closed 5 years ago

lisa3907 commented 5 years ago

MAIL-FROM: Nir Samocha [mailto:fixgasket@gmail.com]

Hi,
Thank you for contributing and providing the framework for working with CCXT and .net.

I am trying to work with the code on 
https://github.com/lisa3907/ccxt.net.

However, it is not clear to me how to work with it.
I am getting the following errors when building the project:

1. The current .NET SDK does not support targeting .NET Core 3.0.  Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.0.  ccxt.net 

2. NETSDK1050   The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher.  Please install version 2.0 or higher of the .NET Core SDK. ccxt.net (src\ccxt.net) C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.NETFramework.targets  67  

3.The current .NET SDK does not support targeting .NET Standard 2.0.  Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0.   ccxt.net (src\ccxt.net) C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets   126 

I've installed the .net core 3 ,2.2 and every SDK stated in the errors. 

Could you please help?

Thank you in advance,
Nir
lisa3907 commented 5 years ago

Plz send me your sample project that has error.

Tollervey commented 5 years ago

Nir, I had the same issue with the latest code. It appears Lisa3907 has moved to VS 2019 ;) Simple fix is the following when running in VS 2017: In ccxt.net.csproj (main project): change - net462;netstandard2.1 to - net462;netstandard2.0

in ccxt.net.csproj (test project) Change - netcoreapp3.0 to netcoreapp2.2

Then rebuild in VS.

lisa3907 commented 5 years ago

sorry!! I downgrade netstandard2.1 to netstandard2.0 & netcoreapp3.0 to netcoreapp2.2