【问题标题】:how to debug xamarin code in visual studio 2017如何在 Visual Studio 2017 中调试 xamarin 代码
【发布时间】:2018-07-03 14:27:12
【问题描述】:

我正在使用 Xamarin 表单在 UWP 上创建一个项目,但我无法调试代码??

我正在创建一个 Login.xaml 页面,设计部分的代码是:- <Button Text="Login" Clicked="OnNextPage" BackgroundColor="Yellow" /> 和 Login.xaml.cs 文件:- 我试图调用按钮单击事件:- you can see in below image:- 但是点击按钮时断点没有命中。

【问题讨论】:

  • 您是否尝试在本地计算机或其他设备上进行调试?此外,请检查以确保您实际上处于调试模式,而不是在 Visual Studio 中发布。

标签: .net xamarin uwp


【解决方案1】:

这里似乎是同样的问题: Xamarin Forms UWP - Unable To Debug Shared Code

尝试@Nico Zhu - MSFT 的解决方法,将以下代码放入 .NET 标准库 csproj 文件中。

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

【讨论】:

    猜你喜欢
    • 2017-07-30
    • 1970-01-01
    • 2023-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-21
    • 1970-01-01
    相关资源
    最近更新 更多