Skip to content

Commit eae9086

Browse files
Added docs explaining how to disable Sentry Native in the .NET SDK (#15293)
1 parent 198695d commit eae9086

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/platforms/dotnet/common/configuration/disable-integrations.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ description: "Learn more about the methods that disable integrations."
66

77
All of Sentry’s SDKs provide integrations, which extend functionality of the SDK. Most integrations are enabled by default, though you can disable them if needed.
88

9-
To disable an integration, for example, the automatic capture of unhandled exceptions:
9+
# Options
10+
11+
Most integrations can be disabled via the options when initializing the SDK. For example, to disable the automatic capture of unhandled exceptions:
1012

1113
```csharp
1214
// Add it to your Sentry SDK initialization block:
@@ -39,3 +41,15 @@ Disables adding the list of .NET Frameworks installations into events.
3941
## DisableAppDomainProcessExitFlush
4042

4143
Disables flushing events upon `AppDomain.ProcessExit` event handler.
44+
45+
# Sentry Native
46+
47+
On many platforms, the .NET SDK for Sentry includes Sentry Native, which lets you capture crash reports for native (unmanaged) code. If you are experiencing difficulties, you can disable Sentry Native by setting the `SentryNative` build property to `false`:
48+
49+
```xml
50+
<PropertyGroup>
51+
<SentryNative>false</SentryNative>
52+
</PropertyGroup>
53+
```
54+
55+
Note: Sentry Native is disabled by default for applications targeting WASM.

0 commit comments

Comments
 (0)