Skip to content

Commit a918f4d

Browse files
committed
just supress the warning
1 parent 42d85fe commit a918f4d

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<!-- We need to support old stuff. Applications should definitely address these advisory warnings though. -->
2121
<NoWarn>$(NoWarn);NU1902;NU1903</NoWarn>
2222

23+
<!-- Ignore Wasm related warnings due to AOT -->
24+
<NoWarn>$(NoWarn);WASM0001</NoWarn>
25+
2326
<!-- https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/dotnet-restore-audit#version-introduced -->
2427
<WarningsNotAsErrors>NU1902;NU1903</WarningsNotAsErrors>
2528
</PropertyGroup>

src/Directory.Build.props

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
<EnableAot>true</EnableAot>
4141
</PropertyGroup>
4242

43-
<PropertyGroup>
44-
<DefineConstants Condition="'$(UsingSentryBlazorWebAssemblySdk)'=='true'">$(DefineConstants);_SENTRY_BLAZOR_WASM</DefineConstants>
45-
</PropertyGroup>
46-
4743
<PropertyGroup>
4844
<!-- Used by SIL.ReleaseTasks below -->
4945
<ChangelogFile>$(MSBuildThisFileDirectory)..\CHANGELOG.md</ChangelogFile>

src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
<FrameworkSupportsNative Condition="'$(RuntimeIdentifier)' == 'osx-x64' or '$(RuntimeIdentifier)' == 'osx-arm64'">true</FrameworkSupportsNative>
2424
<!-- net8.0 or greater -->
2525
<FrameworkSupportsNative Condition="'$(_SentryIsNet8OrGreater)' != 'true' or !('$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe')">false</FrameworkSupportsNative>
26-
<!-- blazor wasm -->
27-
<FrameworkSupportsNative Condition="'$(UsingSentryBlazorWebAssemblySdk)' == 'true'">false</FrameworkSupportsNative>
2826
<!-- Make it opt-in/out -->
2927
<FrameworkSupportsNative Condition="'$(SentryNative)' == 'true' or '$(SentryNative)' == 'enable'">true</FrameworkSupportsNative>
3028
<FrameworkSupportsNative Condition="'$(SentryNative)' == 'false' or '$(SentryNative)' == 'disable'">false</FrameworkSupportsNative>

src/Sentry/SentrySdk.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ internal static IHub InitHub(SentryOptions options)
6969
InitSentryCocoaSdk(options);
7070
#elif ANDROID
7171
InitSentryAndroidSdk(options);
72-
#elif NET8_0_OR_GREATER && !_SENTRY_BLAZOR_WASM
72+
#elif NET8_0_OR_GREATER
7373
// TODO: Is this working properly? Currently we don't have any way to check if the app is being compiled AOT
7474
// All we know is whether trimming has been enabled or not. I think at the moment we'll be initialising
7575
// SentryNative for managed applications when they've been trimmed!

0 commit comments

Comments
 (0)