,
}
),
code: [
{
language: 'shell',
label: 'Package Manager',
value: 'packageManager',
code: getInstallProfilingSnippetPackageManager(params),
},
{
language: 'shell',
label: '.NET Core CLI',
value: 'coreCli',
code: getInstallProfilingSnippetCoreCli(params),
},
],
},
{
description: (
,
programCode:
,
}
),
configurations: [
params.isProfilingSelected
? {
code: [
{
language: 'csharp',
label: 'Windows/Linux/macOS',
value: 'windows/linux/macos',
code: getConfigureSnippet(params, DotNetPlatform.WINDOWS),
},
{
language: 'csharp',
label: 'iOS/Mac Catalyst',
value: 'ios/macCatalyst',
code: getConfigureSnippet(params, DotNetPlatform.IOS_MACCATALYST),
},
],
}
: {
language: 'csharp',
code: getConfigureSnippet(params),
},
],
},
],
verify: (params: Params) => [
{
type: StepType.VERIFY,
description: t('Verify Sentry is correctly configured by sending a message:'),
configurations: [
{
language: 'csharp',
code: 'SentrySdk.CaptureMessage("Something went wrong");',
},
],
},
...(params.isPerformanceSelected
? [
{
title: t('Performance Monitoring'),
description: t(
'You can measure the performance of your code by capturing transactions and spans.'
),
configurations: [
{
language: 'csharp',
code: getPerformanceMonitoringSnippet(),
},
],
additionalInfo: tct(
'Check out [link:the documentation] to learn more about the API and automatic instrumentations.',
{
link: (
{tct(
'You can find an example ASP.NET MVC 5 app with Sentry integrated [link:on this GitHub repository].',
{
link: (
,
strong: ,
}
)}