Skip to content

Application using Sentry.AspNetCore 6.3.1 fails to build on Windows when using native AoT #5122

Closed

Description

@martincostello

Package

Sentry.AspNetCore

.NET Flavor

.NET

.NET Version

10.0.201

OS

Windows

OS Version

Microsoft Windows Server 2025 10.0.26100

Development Environment

Other

Other Error Monitoring Solution

No

Other Error Monitoring Solution Name

No response

SDK Version

6.3.1

Self-Hosted Sentry Version

No response

Workload Versions

Whatever the defaults on GitHub Actions Windows runners are.

UseSentry or SentrySdk.Init call

builder.WebHost.UseSentry(builder.Configuration["Sentry:Dsn"]);

Steps to Reproduce

  1. Clone martincostello/website@370f448 on Windows
  2. Run build.ps1 -SkipTests in the root of the repository

Expected Result

Application compiles.

Actual Result

  Website -> D:\a\website\website\artifacts\bin\Website\release\Website.dll
  Generating native code
sentry-native.lib(sentry_core.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_core.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_envelope.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_envelope.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_alloc.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_alloc.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_modulefinder_windows.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_modulefinder_windows.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_options.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_options.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_transport.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_transport.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_value.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_value.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_uuid.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_uuid.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_scope.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_scope.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_session.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_session.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_tracing.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_tracing.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_info.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_info.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_path_windows.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_path_windows.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_path.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_path.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_attachment.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_attachment.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_ringbuffer.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_ringbuffer.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_os.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_os.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_utils.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_utils.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_logger.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_logger.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_database.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_database.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_hint.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_hint.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_logs.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_logs.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_metrics.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_metrics.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_process_windows.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_process_windows.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_random.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_random.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_disk_transport.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_disk_transport.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_string.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_string.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_json.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_json.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_ratelimiter.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_ratelimiter.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_backend.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_backend.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_backend_inproc.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_backend_inproc.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_transport_none.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_transport_none.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_unwinder.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_unwinder.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(mpack.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(mpack.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_slice.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_slice.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_symbolizer_windows.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_symbolizer_windows.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_batcher.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_batcher.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_screenshot_windows.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_screenshot_windows.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_screenshot.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_screenshot.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_unwinder_dbghelp.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_unwinder_dbghelp.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
sentry-native.lib(sentry_windows_dbghelp.obj) : error LNK4099: PDB 'sentry.pdb' was not found with 'sentry-native.lib(sentry_windows_dbghelp.obj)' or at 'D:\a\website\website\artifacts\bin\Website\release\native\sentry.pdb'; linking object as if no debug info [D:\a\website\website\src\Website\Website.csproj]
D:\.nuget\packages\microsoft.dotnet.ilcompiler\10.0.5\build\Microsoft.NETCore.Native.targets(396,5): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64\link.exe" @"D:\a\website\website\artifacts\obj\Website\release\native\link.rsp"" exited with code -1. [D:\a\website\website\src\Website\Website.csproj]

Activity

  1. added
    BugSomething isn't working
    .NETPull requests that update .net code
    on Apr 8, 2026
  2. linear-code commented on Apr 8, 2026

    @linear-code
  3. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Apr 8, 2026
  4. jamescrosswell commented on Apr 8, 2026

    @jamescrosswell
    Collaborator

    @martincostello has this just started happening with the 6.3.1 release (i.e. you didn't see this behaviour with 6.3.0 and earlier)?

    There was a change to the way that submodules are handled in the sentry-native SDK in the 6.3.1 release:

  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Apr 8, 2026
  6. martincostello commented on Apr 8, 2026

    @martincostello
    ContributorAuthor

    Yes, this is the renovate PR that surfaced it: martincostello/website#3319

  7. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Apr 8, 2026
  8. jamescrosswell commented on Apr 8, 2026

    @jamescrosswell
    Collaborator

    Great, thanks @martincostello - will need to do a bit of digging. @jpnurmi any ideas off the top of your head?

  9. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Apr 8, 2026
  10. jpnurmi commented on Apr 9, 2026

    @jpnurmi
    Collaborator

    A quick fix is up:

    This is a regression in sentry-native 0.13.5, so I've prepared a fix there:

    Edit: Fix coming in sentry-native 0.13.6:

  11. jamescrosswell commented on Apr 14, 2026

    @jamescrosswell
    Collaborator

    @martincostello this should be fixed in the 6.3.2 release:

    Let us know if you have any issues though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeBugSomething isn't working

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions