You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the debug file contains information about `SentryDiagnosticListenerIntegration`, then your project already includes the integration automatically.
40
+
41
+
42
+
### Implicit Usings
43
+
44
+
From version 3.14.0, Sentry will respect [Implicit Usings](https://docs.microsoft.com/en-us/dotnet/core/project-sdk/overview#implicit-using-directives). This means is Implicit Usings is enabled (`<ImplicitUsings>enable</ImplicitUsings>` or `<ImplicitUsings>true</ImplicitUsings>`) then `Sentry` will be added to the current global using directives. This means that `using Sentry;` can be omitted from any `.cs` files.
45
+
46
+
In some scenarios Implicit Usings can result in type name conflicts. For example `Session` may exist in multiple namespaces. This can be resolved by fully qualifying the type inline (`Sentry.Session`), or with a [using alias](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-directive#using-alias):
47
+
48
+
```
49
+
using SentrySession = Sentry.Session;
50
+
```
51
+
52
+
Then `SentrySession` can be used instead of `SentrySession`.
0 commit comments