Xamarin Forms UWP - 无法调试共享代码 [英] Xamarin Forms UWP - Unable To Debug Shared Code

查看:31
本文介绍了Xamarin Forms UWP - 无法调试共享代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始在使用 .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 Standard Library csproj 文件中.

Place the above code in the .NET Standard Library csproj file.

这篇关于Xamarin Forms UWP - 无法调试共享代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆