stripe / stripe-dotnet

Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com.
Apache License 2.0
1.36k stars 571 forks source link

Add TargetFramework=net5.0 to codegen-format Makefile step #2994

Open jar-stripe opened 1 day ago

jar-stripe commented 1 day ago

Why?

This SDK uses the dotnet format command to format source generated source code from our code generator. By default this command will attempt to run the formatter for each of the target frameworks in parallel; this was observed to sometimes cause compiler errors in the StripeTypeRegistry.cs file (specifically, it would duplicate the V2TypesToEventTypes dictionary). This PR fixes this by ensuring dotnet format only runs once for one framework

What?