ArangoDB-NET icon indicating copy to clipboard operation
ArangoDB-NET copied to clipboard

Support for .NetCore

Open RajVrach opened this issue 8 years ago • 10 comments

Hi..do we have a roadmap to support .Net Core framework https://www.microsoft.com/net/core#windows

Tried to compile against the .Net Core its breaking due to DATSET usage in fastJSON https://github.com/yojimbo87/ArangoDB-NET/tree/master/src/Arango/Arango.Client/ExternalLibraries/fastJSON PS: DATSET is no longer avail in System.Data in .Net Core

Project Arango.Client (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing Compiling Arango.Client for .NETCoreApp,Version=v1.0 C:\Program Files\dotnet\dotnet.exe compile-csc @C:_Projects\Arango.Client\src\Arango.Client\obj\Debug\netcoreapp1.0\dotnet-compile.rsp returned Exit Code 1 C:_Projects\Arango.Client\src\Arango.Client\ExternalLibraries\fastJSON\JSON.cs(922,17): error CS0246: The type or namespace name 'DataSet' could not be found (are you missing a using directive or an assembly reference?) C:_Projects\Arango.Client\src\Arango.Client\ExternalLibraries\fastJSON\JsonSerializer.cs(257,41): error CS0246: The type or namespace name 'DataSet' could not be found (are you missing a using directive or an assembly reference?) C:_Projects\Arango.Client\src\Arango.Client\ExternalLibraries\fastJSON\JsonSerializer.cs(288,35): error CS0246: The type or namespace name 'DataSet' could not be found (are you missing a using directive or an assembly reference?) Compilation failed. 0 Warning(s) 3 Error(s)

Any pointers get away from DATASET which will work right now till we get best solution out?

Thanks Raj

RajVrach avatar Sep 30 '16 19:09 RajVrach

Hi,

in the future, when velocypack serialization is implemented in ArangoDB then fastJSON won't be needed therefore I think the transition to .NET Core might be easier. Another option is to get rid of parts of the code where dataset is being used. I'll try to look into it.

yojimbo87 avatar Oct 01 '16 13:10 yojimbo87

looks like the following fork has done the same (removed System.Data from fastJSON) https://github.com/Panaetius/ArangoDB-NET-core

As you said till velocypack is not avail..we can get away with remove stuff. .Net Core compatibility is key for C# to be more mainstream in Linux apps/webapps ..hope future versions support it fully.

Cheers..

RajVrach avatar Oct 02 '16 22:10 RajVrach

Hi,

I'm working the Velocypack .NET implementation for ArangoDB .NET drivers, based on java driver. if you interested it, please check out my project. nevermind main project called ArangoDB.NET, it's just Java driver migration and no plan to solve yet.

Thanks. Composite

composite avatar Nov 21 '16 01:11 composite

Hi,

thanks for the effort of porting the Java version. I recently started working on my own implementation of the velocypack format, so it might be interesting to see for example the performance comparison in the future.

yojimbo87 avatar Nov 22 '16 09:11 yojimbo87

@yojimbo87 oh that's so interesting.

composite avatar Nov 24 '16 08:11 composite

Any updates on this?

jeff-pang avatar Sep 15 '17 14:09 jeff-pang

Hi, sorry but no plans for this yet.

yojimbo87 avatar Sep 16 '17 08:09 yojimbo87

@yojimbo87 ok thanks for the answer

jeff-pang avatar Sep 19 '17 05:09 jeff-pang

Do u have plans to migrate to .net core 2.0? Any activity in this repo?

aligin avatar Apr 24 '18 12:04 aligin

@aligin Not yet, currently the repo is not actively developed for some time.

yojimbo87 avatar Apr 24 '18 19:04 yojimbo87