2017-04-09 39 views

回答

7

我相信对于Xamarin来说ppdb的支持并不完全在这里。因此暗示<DebugType>portable</DebugType>在dotnet标准.csproj中是不兼容的。

您应该能够通过添加以下到您的dotnet标准库中的.csproj的命中断点在你的dotnet标准库:

<DebugType>Full</DebugType> 

这将返回到默认的调试类型的“全”,而不是PPDB(便携式PDB)

https://github.com/dotnet/core/blob/master/Documentation/diagnostics/portable_pdb.md#supported-scenarios

如果有需要有条件的,你可以回去了以下内容:

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
    <DebugType>Full</DebugType> 
    </PropertyGroup> 

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 
    <DebugType>pdb-only</DebugType> 
    </PropertyGroup> 

然而释放<DebugType>是有点冗余。

相关问题