Skip to content

Commit d8c6fad

Browse files
authored
fix(dotnet): onboarding install package (#14335)
1 parent 7d989fd commit d8c6fad

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

docs/platforms/dotnet/index.mdx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,35 +38,34 @@ Sentry captures data by using an SDK within your application's runtime. These ar
3838

3939
Install the **NuGet** package to add the Sentry dependency:
4040

41-
<OnboardingOption optionId="profiling">
41+
<OnboardingOption optionId="error-monitoring">
42+
43+
```shell {tabTitle:.NET Core CLI}
44+
dotnet add package Sentry -v {{@inject packages.version('sentry.dotnet') }}
45+
```
4246

43-
<Alert>
47+
```powershell {tabTitle:Package Manager}
48+
Install-Package Sentry. -Version {{@inject packages.version('sentry.dotnet') }}
49+
```
4450

45-
Sentry profiling for .NET is available in Alpha on .NET 8.0 and newer.
51+
</OnboardingOption>
4652

47-
</Alert>
53+
<OnboardingOption optionId="profiling">
4854

4955
```shell {tabTitle:.NET Core CLI}
50-
dotnet add package Sentry -v {{@inject packages.version('sentry.dotnet') }}
5156
dotnet add package Sentry.Profiling -v {{@inject packages.version('sentry.dotnet.profiling') }}
5257
```
5358

5459
```powershell {tabTitle:Package Manager}
55-
Install-Package Sentry -Version {{@inject packages.version('sentry.dotnet') }}
5660
Install-Package Sentry.Profiling -Version {{@inject packages.version('sentry.dotnet.profiling') }}
5761
```
5862

59-
```shell {tabTitle:Paket CLI}
60-
paket add Sentry --version {{@inject packages.version('sentry.dotnet') }}
61-
paket add Sentry.Profiling --version {{@inject packages.version('sentry.dotnet.profiling') }}
62-
```
6363
</OnboardingOption>
6464

6565
## Configure
6666

6767
To capture all errors, even the one during the startup of your application, you should initialize the Sentry .NET SDK as soon as possible.
6868

69-
7069
```csharp
7170
SentrySdk.Init(options =>
7271
{
@@ -89,4 +88,4 @@ SentrySdk.Init(options =>
8988

9089
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.
9190

92-
<PlatformContent includePath="getting-started-verify" />
91+
<PlatformContent includePath="getting-started-verify" />

0 commit comments

Comments
 (0)