Skip to content

Commit 1b2fb42

Browse files
committed
actually working?
1 parent c1c9885 commit 1b2fb42

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Sentry/Platforms/Native/CFunctions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace Sentry.Native;
1010
/// <see href="https://github.com/getsentry/sentry-native"/>
1111
internal static class C
1212
{
13-
#if !_SENTRY_BLAZOR_WASM
1413
internal static void SetValueIfNotNull(sentry_value_t obj, string key, string? value)
1514
{
1615
if (value is not null)
@@ -586,5 +585,4 @@ private static void WithMarshalledStruct<T>(T structure, Action<IntPtr> action)
586585

587586
return message;
588587
}
589-
#endif
590588
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
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>
2628
<!-- Make it opt-in/out -->
2729
<FrameworkSupportsNative Condition="'$(SentryNative)' == 'true' or '$(SentryNative)' == 'enable'">true</FrameworkSupportsNative>
2830
<FrameworkSupportsNative Condition="'$(SentryNative)' == 'false' or '$(SentryNative)' == 'disable'">false</FrameworkSupportsNative>

src/Sentry/Sentry.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<TargetFrameworks Condition="'$(NO_IOS)' == '' And $([MSBuild]::IsOSPlatform('OSX'))">$(TargetFrameworks);net9.0-ios18.0;net8.0-ios17.0</TargetFrameworks>
1414
<TargetFrameworks Condition="'$(NO_MACCATALYST)' == '' And $([MSBuild]::IsOSPlatform('OSX'))">$(TargetFrameworks);net9.0-maccatalyst18.0;net8.0-maccatalyst17.0</TargetFrameworks>
1515
</PropertyGroup>
16-
16+
1717
<!-- Platform-specific props included here -->
1818
<Import Project="Platforms\Android\Sentry.Android.props" Condition="'$(TargetPlatformIdentifier)' == 'android'" />
1919
<Import Project="Platforms\Cocoa\Sentry.Cocoa.props" Condition="'$(TargetPlatformIdentifier)' == 'ios' Or '$(TargetPlatformIdentifier)' == 'maccatalyst'" />

0 commit comments

Comments
 (0)