Open klemmchr opened 6 months ago
@vaind do you think we can disable the warning now that we're guarding and not initializing sentry-native
on Blazor? It does sound like a potential foot gun down the road tho.
I don't think we can do anything else than disable the warning. There's only a runtime check for us to use: https://github.com/dotnet/aspnetcore/issues/38667#issuecomment-981099588 thus we cannot get rid of the warning by not including the code at all.
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.5
OS
Any (not platform specific)
SDK Version
4.6.2
Self-Hosted Sentry Version
No response
Steps to Reproduce
Expected Result
No warning
Actual Result
During AoT the following warning is emitted
The app itself works fine, I don't observe any errors in console or during build.