如何在PDB中嵌入C#源进行调试?
这是我的csproj文件:如何在PDB中嵌入C#源进行调试?,c#,.net,debugging,roslyn,pdb,C#,.net,Debugging,Roslyn,Pdb,这是我的csproj文件: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <PropertyGroup> <!-- Optional: Embed source files that a
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedAllSources>true</EmbedAllSources>
<!--<EmbedUntrackedSources>true</EmbedUntrackedSources>-->
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<AssemblyVersion>1.0.2.0</AssemblyVersion>
<FileVersion>1.0.2.0</FileVersion>
<Version>1.0.2</Version>
</PropertyGroup>
</Project>
netstandard2.0
真的
真的
斯努普克
假的
1.0.2.0
1.0.2.0
1.0.2
调试时,可以正确下载PDB文件,但无法通过PDB找到源文件。调试器仍然会弹出选择源文件的对话框