-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
pdb not found when running single exe that contains native dependencies #3807
Comments
Ok. So I tried creating another sample app that uses Grpc.Core (the C version); and it works fine. https://github.com/ztl8702/dotnet-core-single-exe-repro/runs/260574843 So this might be an issue specific to Libgit2Sharp.... Still, I would appreciate any ideas on how to debug. |
So it appears that the |
The bundle task has an |
Setting |
So the logic here: Should be changed to something like: if EmbedPDBs || if the pdb is referenced in deps.json? |
That sounds reasonable to me, I'm not familiar with this code though. (That |
This issue is a dup of dotnet/sdk#3685 @dagood, I'll fix the |
This does not work when the project containing the nuget with native pdb files (ex Microsoft.ML.onnxruntime) is a .net core 3 project, and referenced in a Windows Application Packaging Project (to pack as UWP)... Then it seams impossible to either discard the pbd files, or to include them in the single file (which the packaging project is totally responsible for)... |
Steps to reproduce
I have a simple console app which has a dependency on Libgit2Sharp, which contains native binaries. When published as a single EXE, it fails to run.
Expected behavior
Console app runs, and should output something like:
Actual behavior
Fails to run, with error:
Environment data
.NET Core SDK: 3.0.100
Operating system (reproducible when running the single exe on):
The text was updated successfully, but these errors were encountered: