ctaggart / froto

Froto: F# Protocol Buffers
MIT License
146 stars 27 forks source link

Make TP work with .NET Core tooling #99

Closed dsyme closed 5 years ago

dsyme commented 5 years ago

Just recording an issue that the type provider can now be updated to work with .NET Core tooling

The template for type providers is the best guide for the structure to use, for both project and package layout, https://github.com/fsprojects/FSharp.TypeProviders.SDK#the-f-type-provider-sdk

dotnet new -i FSharp.TypeProviders.Templates
dotnet new typeprovider -n LemonadeProvider -lang F#
ctaggart commented 5 years ago

Thanks @dsyme. So jet/falanx is a code generator that uses Froto.Parser to generate code that uses Froto.Serialization. I had the chance to look through the code earlier this week and it is my understanding that a type provider is being used internally. Some questions for @7sharp9:

It would be amazing if you could generate F# code from any type provider. I need to generate code for use with Swagger v2 or OpenAPI v3 specs. I want the generated code to build HttpClient typed clients. It would be great I could use the same code to support a type provider or generated F# code.

ctaggart commented 5 years ago

Fixed by @takemyoxygen in #102 and is on master.