wivuu / Wivuu.JsonPolymorphism

Adds System.Text.Json serializer support for polymorphism with a discriminator attribute
MIT License
25 stars 3 forks source link

Change generated source hint names to have a .g.cs suffix #4

Closed GraemeF closed 3 years ago

GraemeF commented 3 years ago

There is a convention that Coverlet depends upon to detect and ignore 3rd-party assemblies.

This issue explains the problem: https://github.com/coverlet-coverage/coverlet/issues/1164

Without the .g.cs suffix it is not possible to generate code coverage in projects that use this package. See https://github.com/dotnet/runtime/pull/53275/commits/f368fcf89b8ec0706dd35d5224c23eb82b46d61b for an example of a fix for the same issue in the dotnet runtime.

onionhammer commented 3 years ago

Thanks for the PR!