Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.303
OS
macOS
SDK Version
4.10.2
Self-Hosted Sentry Version
No response
Steps to Reproduce
- Create a sample project Sentry.Test which targets .net8-macos
- Specify application identifier and version in the Info.plist:
<key>CFBundleIdentifier</key>
<string>com.Test.Sentry-Mac</string>
<key>CFBundleShortVersionString</key>
<string>5.55.0</string>
<key>CFBundleVersion</key>
<string>555</string>
- Add Sentry nuget package, initialize it from the
NSApplicationDelegate.DidFinishLaunching() callback
- Capture and send any exception using
SentrySdk.CaptureException()
Expected Result
Captured exception is reported with a release version in the format "<bundle_identifier>@<bundle_short_version>+<bundle_version>", in this case it should be "com.Test.Sentry-Mac@5.55.0+555"
Actual Result
Captured exception is reported with a release version of "Sentry.Test@1.0.0+3698dd19ef2b4114dd77aed39cc71fd09a9c6586", which seems to be an assembly name and version + git commit hash
It seems that if application is targeting .net8-macos - Sentry Cocoa SDK is not initialized at all, even though it feels like it should.
|
#if __IOS__ |
|
InitSentryCocoaSdk(options); |
|
#elif ANDROID |
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.303
OS
macOS
SDK Version
4.10.2
Self-Hosted Sentry Version
No response
Steps to Reproduce
NSApplicationDelegate.DidFinishLaunching()callbackSentrySdk.CaptureException()Expected Result
Captured exception is reported with a release version in the format "<bundle_identifier>@<bundle_short_version>+<bundle_version>", in this case it should be "com.Test.Sentry-Mac@5.55.0+555"
Actual Result
Captured exception is reported with a release version of "Sentry.Test@1.0.0+3698dd19ef2b4114dd77aed39cc71fd09a9c6586", which seems to be an assembly name and version + git commit hash
It seems that if application is targeting .net8-macos - Sentry Cocoa SDK is not initialized at all, even though it feels like it should.
sentry-dotnet/src/Sentry/SentrySdk.cs
Lines 67 to 69 in 33be706