fiseni / SmartAnnotations

A library for .NET that uses source generators to automatically generate data annotations for your models.
MIT License
53 stars 5 forks source link

Blazor Question #2

Closed TorreyGarland closed 2 years ago

TorreyGarland commented 2 years ago

Are there any issues with working with Blazor Server Apps or WASM?

TorreyGarland commented 2 years ago

or FluentValidation?

fiseni commented 2 years ago

The library uses source generators to generate new files on build. If the build is successful and you can see the generated files, then it doesn't make any difference if it's Blazor Server App, WASM, or anything else. It would be the same as you would have created those metadata files manually. On the other hand, it's up to the given frameworks whether they have support for data annotations or not.

Anyhow, this was just an experimental project. Please don't use it in production. Refer to this issue #1 for more details.