Closed pkese closed 2 years ago
It's possible if SharpYaml package is Core compatible.
Yes,
SharpYaml is compatible with NetStandard 1.6
https://www.nuget.org/packages/SharpYaml/
How is it possible? I thought that TP does not work yet on .NET Core - https://github.com/Microsoft/visualfsharp/issues/2406
@vasily-kirichenko Do you know at least one (erased) TP that is compiled to .net standard and work on .net core?
Ah, I don't follow .NET Core news, I thought TPs are already supported.
@vasily-kirichenko no they are not.
I noticed there are alpha releases for .netstandard on nuget.
What is the state of those builds? How functional are they on netstandard?
@tylerhartwig plz, try it and tell us ;)
It is in alpha because it is does not contain ResXProvider
at the moment and there is no way auto-magically load web.config
.
YamlConfigTypeProvider
, IniFileProvider
& AppSettingsTypeProvider
should be in perfect shape (as good as before).
I had issues with the yamlprovider in Rider and vscode with regards to intellisense, but they compiled perfectly.
@baronfel what sorts of issues you had? Performance?
IIRC, current alpha does not contain caching
for provided types. Can it be related?
It was always just red squigglies for unknown members on the generated type. Just a design time issue, though! One of the many things I hadn't found time to run down.
Ah I'd love to try it out and let yall know, however I was hoping to try out the resx :D
Is that piece started? What does the work on that look like?
@tylerhartwig yes, take a look here https://github.com/fsprojects/FSharp.Configuration/pull/139#issuecomment-448216452
the original implementation is heavily rely on winforms that is not net-standard thing =(
We also can ask @Liminiens opinion on how far we are ;)
@sergey-tihon i beleive it is be possible to target net core 3.0 for resx provider since it has win forms bits, but it needs some research
@Liminiens maybe, but it anyway will be win-only. right?
yes :)
any news on .netstandard porting effort ? maybe YAML type provider should be in the main FSharp.Data library?
@jkone27 have you tried 2.0.0-alpha2? It contains .net standard version of YAML type provider
Will give it a try, thanks a lot @sergey-tihon 👍
just a thought, but any thoughts of migrating it to FSharp.Data ? i think it could prove very useful and maybe it's a nicer fit there, or have a separate package/repo like FSharp.Data.Yaml ? Have a really nice day!
This package is only available as for dotnet 4.5 and can't be used in modern .Net Core / .Net Standard enironments (Linux...).
Is there a reason it can't be provided as Netstandard compatible.