influxdata / influxdata/influxdb-client-csharp

No longer usable in projects with C++/CLI

Open
#712 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
377
Forks
93
Avg merge
9m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the compilation failure in the C++/CLI project described in the issue, using InfluxDB Client C# 4.18.0 and the RestSharp issue 2233 for context. Inspect the dependency and the reported Stdafx.cpp compilation path; done means the project compiles successfully on the specified Windows environments without the RestSharp namespace error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, csharp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.