Skip to content

Commit 190b753

Browse files
Add installation troubleshooting note (#5148)
1 parent 84aefda commit 190b753

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/platforms/dotnet/guides/maui/index.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Sentry has an integration for the [.NET Multi-platform App UI (MAUI)](https://do
99

1010
## Installation
1111

12-
Add the Sentry dependency:
12+
Add the Sentry dependency to your .NET MAUI application:
1313

1414
```powershell {tabTitle:Package Manager}
1515
Install-Package Sentry.Maui -Version 3.18.0-preview.1
@@ -21,6 +21,23 @@ dotnet add package Sentry.Maui -v 3.18.0-preview.1
2121

2222
This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/). This means that besides the MAUI related features, through this package you'll also get access to all the framework's logging integration and also the features available in the main [Sentry](/platforms/dotnet/) SDK.
2323

24+
<Note>
25+
26+
#### Troubleshooting
27+
28+
The MAUI workloads are updated by Microsoft periodically. When trying to install or update `Sentry.Maui`, you may get errors such as the following:
29+
30+
```
31+
error: NU1605: Detected package downgrade: Microsoft.Maui.Dependencies from 6.0.400 to 6.0.312. Reference the package directly from the project to select a different version.
32+
error: test -> Sentry.Maui 3.18.0-preview.1 -> Microsoft.Maui.Dependencies (>= 6.0.400)
33+
error: test -> Microsoft.Maui.Dependencies (>= 6.0.312)
34+
```
35+
36+
This happens when you have an older version of the `maui` workload than the one that was current when we built the package.
37+
We are investigating how to avoid this issue in a future release. For now, you can update your workloads by using the `dotnet workload update` command. See [this issue](https://github.com/getsentry/sentry-dotnet/issues/1724) for further details.
38+
39+
</Note>
40+
2441
### Configure
2542

2643
In your `MauiProgram.cs` file, call `UseSentry` on your `MauiAppBuilder`, and include any options you would like to set. The `Dsn` is the only required parameter.

0 commit comments

Comments
 (0)