MSIX package stack trace without line numbers

N Wagner 1 Reputation point
2022-04-11T14:59:02.147+00:00

I have a C# project built with Visual Studio 2019. In the Build options I have selected "PDB-only" for Debugging information (but tried also "Full").
When creating App Packages I check "Include public symbol files".
When the program is installed with this package and crashes, the stack trace does not include line numbers. When I copy the Release folder to the target machine and run it from there, the strack trace includes line numbers.
Looking in this forum I found
https://social.msdn.microsoft.com/Forums/en-US/5c0ab108-edf6-426c-b60b-4dc1017d9e2b/is-it-possible-to-obtain-line-numbers-in-the-stack-trace-of-an-exception?forum=winappswithcsharp
This thread ends with "Yes, it seems windows store does not support it.". It was posted in March 2015 and I hope since then something has changed, e.g. the option "Include public symbol files" was added. I mean: why adding public symbols, if not for the sake of a stack trace with line numbers?
I also tried to add the PDB-file by adding
<Content Include="....pdb" />
in the wapproj-file, but the PDB-file was not added, whereas a file with a different extension was added in the correct folder.
What else can I do to get line numbers in stack trace, when program is installed from MSIX-package?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,650 questions
{count} votes