StatePrinter icon indicating copy to clipboard operation
StatePrinter copied to clipboard

Netstandard support

Open juanfranblanco opened this issue 7 years ago • 7 comments
trafficstars

Will it be possible to create a new package targetting netstandard? I have created a temporary package / project file and nuget targetting netstandard 2.0. Probably best to have a single project file multi targetting 3.5 and netstandard (Netstandard 1.0 might be possible).

https://github.com/Nethereum/StatePrinter/blob/master/StatePrinter/StatePrinter.NetStandard.Temp.csproj

Many thanks!

juanfranblanco avatar May 01 '18 11:05 juanfranblanco

As long as we can do it without cluttering the code with a lot of #if and the like I see no problem with it. Not sure what you suggest be the best way to maintain such a configuration. Also I haven't analyzed if all the reflection and run-time code generation is possible in .net standard

kbilsted avatar May 07 '18 22:05 kbilsted

The thought was to target multiple frameworks using "TargetFrameworks" "net351;netstandard20" if you want to keep targetting net35 friendly.

Also in that scenario it needs a property like this: https://github.com/Nethereum/Nethereum/blob/master/buildConf/net35.props#L2-L4

juanfranblanco avatar May 10 '18 09:05 juanfranblanco

Sorry I forgot about this issue. We need to analyse whether core has the same introspection capabilities and run time code generation.

kbilsted avatar Jun 25 '18 12:06 kbilsted

a step in this direction has taken place now.

kbilsted avatar Jan 19 '19 20:01 kbilsted

the .net version has been liftet to 4.6.1. so multiple frameworks should be easier supported now. Up for the task @juanfranblanco ?

kbilsted avatar Jun 03 '19 20:06 kbilsted

Is there still work going on regarding this issue?

sebfrie avatar Oct 20 '20 12:10 sebfrie

@sebfrie the features reading the registry cannot be ported to standard, perhaps someone can multitarget framework and core

kbilsted avatar Oct 21 '20 17:10 kbilsted