Kubernetes.DotNet icon indicating copy to clipboard operation
Kubernetes.DotNet copied to clipboard

Support for .NET Standard

Open masroorhasan opened this issue 7 years ago • 9 comments

swagger-codegen for C# supports dotnet standard 1.3. Support the standard 1.3 platform on separate branch.

masroorhasan avatar Nov 23 '17 23:11 masroorhasan

just curious, how is this coming along?

mmisztal1980 avatar May 12 '18 15:05 mmisztal1980

Ola @mmisztal1980, unfortunately I won't be able to get to it for some time - but please feel free to send a PR and I will definitely be happy to review it :).

masroorhasan avatar May 19 '18 19:05 masroorhasan

Hey @masroorhasan. I just tried to move your existing source code to a new Net Standard project and looks like RestSharp does not support 1.3, only 2.0.

Also I would like you to look at dependencies and say what you think about this:

  • BouncyCastle.NetCore 1.8.2
  • Microsoft.CSharp 4.5.0
  • Newtonsoft.Json 11.0.2
  • NUnit 3.10.1
  • RestSharp 106.3.0
  • System.ComponentModel.Annotations 4.5.0
  • YamlDotNet 4.3.1

All are OK with Net Standard 1.3 except the RestSharp.

P.S. I did not check how does this build work yet, but the build is successful for now.

davidorbelian avatar Jun 06 '18 16:06 davidorbelian

So would it be possible to get .netstandard 2.0 support as a first step?

felixfbecker avatar Jun 15 '18 17:06 felixfbecker

@davidorbelian Thank you! The reason I kept this to DotNet.Framework only was exactly because of RestSharp issues with Net Standard. Since the underlying http client is rest sharp (from swagger codegen), making RestSharp a hard dependency. If you've tested with Net Standard 2.0 and its working then feel free to put up the PR :). The only thing i'm worried about is that RestSharp will build/compile fine with Net Standard 2.0 but blowing up at runtime due to underlying incompatibility.

@felixfbecker Unfortunately I don't have time/resources to investigate deeper into Net Standard compatibility but if David's PR is good to go that can definitely be an option.

masroorhasan avatar Jun 15 '18 17:06 masroorhasan

@davidorbelian could you share your progress? I was not able to get it to work myself

felixfbecker avatar Aug 14 '18 22:08 felixfbecker

@davidorbelian I would be keen to do this - would be great to have a head start - any update possible? at least any gotchas/guidance? Many thanks in advance.

jvdenning avatar Sep 06 '18 11:09 jvdenning

I've been having an amazing experience with https://github.com/tintoy/dotnet-kube-client instead, which supports .NET standard.

felixfbecker avatar Sep 06 '18 11:09 felixfbecker

@felixfbecker @jvdenning Unfortunately no. Sorry for late answer. Now I'm very busy with my basic work and there is no time to experiment. I hope you find what you're looking for. Good luck!

davidorbelian avatar Sep 06 '18 18:09 davidorbelian