this seems like it would work fine (quick&dirty) , but it seems like a way around using the app initializer, which works great btw :)
a good article about it:
Hi, actually my post describes just that. Using the static compile time approach and the dynamic runtime approach which uses the app_initializer 😉
oh my, totally missed the Read more lol :)
🙈 😅 haha sorry for that.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.