dotnet-cqrs/Svrnty.CQRS.Grpc.Generators
Mathias Beaulieu-Duncan ee3ad866d9 Use InvariantCulture for decimal.Parse in generated gRPC mappers
Generated code was using locale-dependent parsing for decimal values.
On systems with comma decimal separator (e.g., French locale), parsing
"0.95" would throw FormatException because the system expected "0,95".

Switched all 4 decimal.Parse() call sites in the generated proto→domain
mappers to pass System.Globalization.CultureInfo.InvariantCulture for
consistent behavior across locales.

Inspired by JP's commit 599204d on feat/grpc-generator-improvements
(applied manually since cherry-pick had heavy context conflicts).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 19:33:27 -04:00
..
build Refactor proto generation from source generator to MSBuild task 2026-01-26 14:35:56 -05:00
Helpers Apply dotnet format with new editorconfig rules 2026-03-12 03:30:50 -04:00
Models Apply dotnet format with new editorconfig rules 2026-03-12 03:30:50 -04:00
GenerateProtoFileTask.cs Refactor proto generation from source generator to MSBuild task 2026-01-26 14:35:56 -05:00
GrpcGenerator.cs Use InvariantCulture for decimal.Parse in generated gRPC mappers 2026-04-20 19:33:27 -04:00
ProtoFileGenerator.cs Handle generic types in proto message name generation 2026-02-19 18:56:37 -05:00
ProtoTypeMapper.cs Handle generic types in proto message name generation 2026-02-19 18:56:37 -05:00
Svrnty.CQRS.Grpc.Generators.csproj fix nuget package for Generator assembly? 2025-11-07 12:48:00 -05:00