Skip to content

Commit 3181dc3

Browse files
authored
fix: disallow building Blazor WASM with Profiling (#4512)
1 parent e1f9b5f commit 3181dc3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Fixes
66

7+
- Fail when building Blazor WASM with Profiling. We don't support profiling in Blazor WebAssembly projects. ([#4512](https://github.com/getsentry/sentry-dotnet/pull/4512))
78
- Do not overwrite user IP if it is set manually in ASP.NET sdk ([#4513](https://github.com/getsentry/sentry-dotnet/pull/4513))
89

910
## 5.15.0

src/Sentry.Profiling/buildTransitive/Sentry.Profiling.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
Condition="'$(TargetPlatformIdentifier)' == 'android'" />
99
<Error Text="Package Sentry.Profiling is not supported on platform '$(TargetPlatformIdentifier)'. The profiler is already part of the main Sentry package."
1010
Condition="'$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'maccatalyst'" />
11+
<Error Text="Package Sentry.Profiling is not supported with Blazor WebAssembly. Please remove Sentry.Profiling from your project."
12+
Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true'" />
1113
</Target>
1214
</Project>

0 commit comments

Comments
 (0)