Xamarin Forms UWP-无法调试共享代码 [英] Xamarin Forms UWP - Unable To Debug Shared Code
问题描述
我最近开始针对具有.NET标准2.0作为代码共享策略的最新版本的Xamarin Forms遇到此问题.
I've recently started having this issue for the latest version of Xamarin Forms with .NET standard 2.0 as the code sharing strategy.
我能够放置一个断点并停止在UWP项目中的任何代码中,但是如果我在共享的DLL代码中放置一个断点,则该断点将从实心红色变为红色填充的白色圆圈.当我将鼠标放在断点上时,它表示该位置尚未加载符号.
I am able to place a breakpoint and stop in any code that lives in the UWP project but if I place a breakpoint in the shared DLL code, the breakpoint turns from solid red to a red outlined circle filled in with white. When I put my mouse over the breakpoint, it says the symbols have not been loaded for that location.
为Xamarin Forms UWP调试共享代码,我做错了什么? Android和iOS工作.
What am I doing wrong to be able to debug the shared code for Xamarin Forms UWP? Android and iOS work.
推荐答案
为Xamarin Forms UWP调试共享代码,我做错了什么? Android和iOS工作.
What am I doing wrong to be able to debug the shared code for Xamarin Forms UWP? Android and iOS work.
这是众所周知的在Visual Studio中出现问题.当前,您可以参考一种解决方法.
It's known issue in Visual Studio. Currently, there is a workaround that you could refer.
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>Full</DebugType>
</PropertyGroup>
将以上代码放入.NET标准库csproj文件中.
Place the above code in the .NET Standard Library csproj file.
这篇关于Xamarin Forms UWP-无法调试共享代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!