Lightstreamer / Lightstreamer-example-Quickstart-client-dotnet

The provided source code can be used as a starting point to familiarize with the Lightstreamer .Net Client API
Apache License 2.0
2 stars 5 forks source link

Can't download Lightstreamer_DotNet_Standard_Client.dll #3

Open Brucedf opened 5 years ago

Brucedf commented 5 years ago

I created c# console project dotnet version 4.6.1 And I download Lightstreamer_DotNet_Standard_Client.dll from NuGet. But it failed. Error_DotNet How Can I fix it?

Bravo27 commented 5 years ago

The Lightstreamer .Net Standard Client target specific version 2.0 of .NET Standard. Indeed from the official Microsoft documentation (https://docs.microsoft.com/en-gb/dotnet/standard/net-standard) the framework 4.6.1 is still compatible and also I can confirm that the Quickstart example run as a Console Application targeting framework 4.6.1 in our internal test. Nevertheless it is recommended to use .Net standard 2.0 libraries with .NET Framework 4.7.2 projects at least. I am still not sure why in your environments the install package fails but you should consider to switch to .NET Framework 4.7.2 project or to .Net Core Application (for an example of .Net Core application with Lightstreamer .Net Standard Client please refer to this).

Alternatively you could consider to keep your 4.6.1 project and install Lightstreamer.DotNet.Client, which are basically the same API but guarantee compatibility with .Net framework 4.5.