embedding-pdb-in-exe
PDB Embedded Debugging Symbols
Embed PDB files into EXE/DLL for stack traces with source locations without separate symbol files.
Quick Start
<PropertyGroup>
<DebugType>embedded</DebugType>
</PropertyGroup>
Recommended Configuration
<PropertyGroup>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<Deterministic>true</Deterministic>
<PathMap>$(MSBuildProjectDirectory)=.</PathMap>
</PropertyGroup>
Command Line
# Build
dotnet build -c Release -p:DebugType=embedded
# Publish (single-file)
dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:DebugType=embedded
DebugType Options
| Option | PDB Location | Use Case |
|---|---|---|
full |
Separate file | Development |
pdbonly |
Separate file | Release (default) |
portable |
Separate file | Cross-platform |
embedded |
Inside EXE | Distribution |
none |
None | Security critical |
Additional Resources
- Source Link Integration: See SOURCE-LINK.md
- Advanced Configuration: See ADVANCED.md
- MSBuild DebugType Reference
More from christian289/dotnet-with-claudecode
converting-html-css-to-wpf-xaml
Converts HTML/CSS to WPF CustomControl XAML with correct patterns and common pitfall solutions. Use when transforming web designs to WPF, converting CSS animations to Storyboards, implementing CSS border-radius clipping, CSS pseudo-elements (::before/::after), or CSS transforms in XAML.
56publishing-wpf-apps
Guides WPF application publishing and installer options. Use when user mentions publish, deploy, release, packaging, or installer to help choose deployment method and installer technology.
14using-avalonia-collectionview
Provides CollectionView alternatives for AvaloniaUI using DataGridCollectionView and ReactiveUI. Use when filtering, sorting, or grouping collections in AvaloniaUI applications.
9designing-avalonia-customcontrol-architecture
Defines the basic solution structure for AvaloniaUI Desktop Applications using CustomControl. Use when creating new AvaloniaUI projects or designing stand-alone control styles with ControlTheme.
9using-xaml-property-element-syntax
Converts long inline XAML bindings to Property Element Syntax for better readability. Use when XAML binding expressions become too long or complex.
8designing-wpf-customcontrol-architecture
Designs stand-alone control styles using WPF CustomControl and ResourceDictionary. Use when creating reusable custom controls or organizing control themes in Generic.xaml.
6