Skip to content

Publishing native aot applications no longer create pdb files #26349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LakshanF opened this issue Jun 29, 2022 · 2 comments · Fixed by dotnet/runtime#71450
Closed

Publishing native aot applications no longer create pdb files #26349

LakshanF opened this issue Jun 29, 2022 · 2 comments · Fixed by dotnet/runtime#71450
Assignees
Labels
Area-NativeAOT Native AOT compilation
Milestone

Comments

@LakshanF
Copy link
Contributor

Likely as a result of #26175, setting PublishAot does not create pdb files.

Repro
With the latest daily SDK, run the following

dotnet new console
dotnet publish /p:PublishAot=true -r win-x64 -c Debug

Result
directory bin\Debug\net7.0\win-x64\publish does not have a pdb file.

@ghost ghost added Area-NetSDK untriaged Request triage from a team member labels Jun 29, 2022
@LakshanF LakshanF added Area-NativeAOT Native AOT compilation and removed untriaged Request triage from a team member Area-NetSDK labels Jun 29, 2022
@LakshanF LakshanF added this to the 7.0.1xx milestone Jun 29, 2022
@LakshanF
Copy link
Contributor Author

This is more likely the result of dotnet/runtime#70233 where we removed the CopyNativePdb target. Specifically, this has relevant details.

@LakshanF
Copy link
Contributor Author

Will keep this open until the fix flows in to the SDK and we can add a test scenario for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NativeAOT Native AOT compilation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants