- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 225
Closed
Labels
Description
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 "[email protected]+555"
Actual Result
Captured exception is reported with a release version of "[email protected]+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
| #if __IOS__ | |
| InitSentryCocoaSdk(options); | |
| #elif ANDROID | 
Metadata
Metadata
Assignees
Labels
Projects
Status
Done
Status
No status