I’m looking to interface my software in c# to the influxdb instance.
I try to install the plug-in InfluxDB.Client via nuget.
On install i’ve an error indicating “Can’t install package “InfluxDB.Client 1.10.0” You’re trying to install this package in a project targeting .NETFramework, Version=v4.6.1”. The package does not contain any file or assembly architecture compatible.
Install-Package : Impossible d’installer le package «InfluxDB.Client 1.10.0». Vous essayez d’installer ce package dans un projet ciblant «
.NETFramework,Version=v4.7.2», mais le package ne contient aucun fichier de contenu ou référence d’assembly compatible avec cette infrastructure. Pour
plus d’informations, contactez le créateur du package.
Au caractère Ligne:1 : 1
Install-Package : Impossible d’installer le package «InfluxDB.Client 1.10.0». Vous essayez d’installer ce package dans un projet ciblant «.NETFramework,Version=v4.8», mais le package ne contient aucun fichier de contenu ou référence d’assembly compatible avec cette
infrastructure. Pour plus d’informations, contactez le créateur du package.
Au caractère Ligne:1 : 1
You were right. According to Microsoft guidelines the 4.6.1 should be enough:
The versions listed here represent the rules that NuGet uses to determine whether a given .NET
Standard library is applicable. While NuGet considers .NET Framework 4.6.1 as supporting .NET
Standard 1.5 through 2.0, there are several issues with consuming .NET Standard libraries that were
built for those versions from .NET Framework 4.6.1 projects. For .NET Framework projects that need
to use such libraries, we recommend that you upgrade the project to target .NET Framework 4.7.2
or higher.