influxdb-client-csharp icon indicating copy to clipboard operation
influxdb-client-csharp copied to clipboard

No longer usable in projects with C++/CLI

Open Antricion opened this issue 7 months ago • 0 comments
trafficstars

Due to a bug in RestSharp since Version 111.3, every version of Influxdb-client-csharp after the change from July 23, 2024, can no longer be used in a project that has to include a C++/CLI part as well. https://github.com/RestSharp/restsharp/issues/2233 Maybe it is finally an issue large enough to move away from RestSharp.

Steps to reproduce: List the minimal actions needed to reproduce the behavior.

  1. Have an older project with C++/CLI, using InfluxDb-Client-CSharp 4.16.0 or older
  2. Upgrade to current InfluxDb-Client-CSharp and try to compile

Expected behavior: Compile without error

Actual behavior: Compiling results in unresolvable error: error C2870: 'RestSharp': a namespace definition must appear either at file scope or immediately within another namespace definition (compiling source file 'Stdafx.cpp')

Specifications:

  • Client Version: 4.18.0
  • InfluxDB Version: Irrelevant
  • Platform: Windows 10@64, Windows11@64

Antricion avatar Apr 14 '25 10:04 Antricion