@slang25<DebugType>embedded</DebugType> allows you to embed the PDBs directly into the assembly. No more symbol server or snupkg needed.
And because it is based on the new portable PDB format the assembly does not get much bigger (word on the streets is that the assembly gets 30% bigger).
@slang25<EmbedAllSources>true</EmbedAllSources> additionally lets you embed the source code into the portable PDB. No more Source Link needed.
This only works with <DebugType>embedded</DebugType> or<DebugType>portable</DebugType> because those are the only flags that will generate portable PDBs (AFAIK).
@slang25 But even if you have an assembly without any symbols, ever since .NET 6 you can make the runtime spit out a method metadata token and IL offset in a stack trace using System.Diagnostics.StackTrace.ShowILOffsets.
Unfortunately there isn't currently an IDE that can make use of that.
Add comment