"对于MyLibrary.dll没有加载&QUOT模块符号;? [英] "Symbols for the module MyLibrary.dll were not loaded"?

查看:206
本文介绍了"对于MyLibrary.dll没有加载&QUOT模块符号;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过一个基本的应用程序,提供有关信息口袋妖怪学习Windows Phone的开发。要做到这一点,我创建了一个便携式类库(PokeLib.dll),所以它具有普遍的应用程序兼容。我已经通过在同一个解决方案(测试)一期工程进行了测试,它工作正常。你可以看看这些代码在我Github上,但据我所知,这一切都很好。这两个项目都在一个解决方案。对于Windows Phone应用程序的解决方案,我说PokeLib为现有项目,增加了引用,并写一些代码几行,以确保我可以把它称为好:

I'm trying to learn Windows Phone dev by making a basic app that provides information about Pokemon. To do this, I've created a portable class library (PokeLib.dll) so it's compatible with universal apps. I've tested this via a project in the same solution ("Test"), and it works fine. You can take a look at the code for these on my Github, but as far as I can tell, it's all good. These two projects are in the one solution. For the Windows Phone app's solution, I added PokeLib as an "existing project", added the references, and written some a couple lines of code to make sure I could call it okay:

MainPage.xaml中:

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="auto"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <Button Name="GetDataButton" Content="GetData" Click="GetDataButton_Click" Grid.Row="0" HorizontalAlignment="Center"/>
    <TextBlock Name="DataText" Text="Click to get data" Grid.Row="1" Padding="10"/>
</Grid>



MainPage.xaml.cs中:

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        p = new Pokemon(1); // gets data for Pokemon #1 (Bulbasaur)
    }

    Pokemon p;
    int counter = 0;

    private async void GetDataButton_Click(object sender, RoutedEventArgs e)
    {
        DataText.Text = "Fetching... Count: " + ++counter;
        if (counter == 1) // first time button's clicked
        {
            await p.Create(); // populates the data container
            DataText.Text = String.Format("Pokemon #{0}: {1}", p.Id, p.Name);
        }
    }

当我尝试在手机模拟器运行此,我得到以下信息:
。我建设项目为调试,并启用仅我的代码选中。我不知道该怎么符号窗格下做的,但我可以补充的一个屏幕截图也一样,如果这将会是有益的。

When I try to run this on a phone emulator, I get the following message: . I am building the project as "debug" and have "Enable Just My Code" unchecked. I am not sure what to do under the Symbols pane, but I can add a screenshot of that too, if it'd be useful.

总之,应用程序打开后,但是当我按下按钮的GetData冻结。我期望,因为这调用同步完成将冻结了一会儿,但是这是永久性的。但是,没有错误/抛出异常。调试器还当我尝试步入p.Create()调用(从截图中的信息可能所产生的)没有回应。

Anyway, the app opens, but freezes when I press the GetData button. I expected it would freeze for a moment since that call is done synchronously, but this is permanent. However, no errors/exceptions are thrown. The debugger also doesn't respond when I attempt to step into the p.Create() call (likely stemming from the message in the screenshot).

任何人都有一个想法我做错了什么? !谢谢

Anyone have an idea of what I'm doing wrong? Thanks!

推荐答案

您可以去项目属性 - >生成 - >高级按钮 - >调试信息下拉和变革其值设置为完全。

You can go to the Project Properties -> Build -> Advanced button -> Debug info drop-down and change its value to "full".

这篇关于&QUOT;对于MyLibrary.dll没有加载&QUOT模块符号;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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