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?
added TargetFramework=net5.0 before running dotnet format to make sure formatting executes once against the net5.0 rules (which should be maximally compatible with our supported targets)
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 ensuringdotnet format
only runs once for one frameworkWhat?
dotnet format
to make sure formatting executes once against the net5.0 rules (which should be maximally compatible with our supported targets)