Windows Phone 7 和 System.Xml.Linq 库 [英] Windows Phone 7 and System.Xml.Linq library

查看:12
本文介绍了Windows Phone 7 和 System.Xml.Linq 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习有关 WP7 开发的教程:http://mobile.tutsplus.com/tutorials/windows/introduction-to-windows-mobile-7-development/

I'm trying to follow this tutorial about WP7 development: http://mobile.tutsplus.com/tutorials/windows/introduction-to-windows-mobile-7-development/

它正在谈论使用 XElements,它需要 System.Xml.Linq 库,但我找不到将它添加到项目引用的方法.当我去添加引用时,.NET 列表是空的,它说它被过滤到 Windows Phone 7.

It's talking about using XElements, which require the System.Xml.Linq library, but I can't find a way to add it to the project references. When I go to add reference, the .NET list is empty, and it's saying it's filtered to Windows Phone 7.

本教程可能已过时.该库甚至可用于 WP7 吗?平台上有没有不同的方式读取XML?

The tutorial might be out of date. Is the library even available for WP7? Is there a different way to read XML on the platform?

我怎样才能让它工作?

这里描述了同样的问题:
http://forums.netduino.com/index.php?/topic/1127-add-reference-net-tab-empty/

The same problem is described here:
http://forums.netduino.com/index.php?/topic/1127-add-reference-net-tab-empty/

建议的修复对我不起作用.

The suggested fix doesn't work for me.

显然这是 Silverlight 4 工具中的一个错误:https://connect.microsoft.com/VisualStudio/feedback/details/529718/empty-net-tab-when-adding-a-reference

Apparently this is a bug in the Silverlight 4 Tools: https://connect.microsoft.com/VisualStudio/feedback/details/529718/empty-net-tab-when-adding-a-reference

推荐答案

从 .NET 选项卡添加引用时,即使对于 Windows Phone 7 项目,程序集列表也不应该为空,因此听起来您可能遇到了问题使用 Visual Studio.

The assembly list should not be empty when adding a reference from the .NET tab even for a Windows Phone 7 project, so it sounds like you might have an issue with Visual Studio.

但是,您可以尝试改用浏览"选项卡.在我的系统(64 位)上,程序集位于 C:Program Files (x86)Reference AssembliesMicrosoftFrameworkSilverlightv4.0ProfileWindowsPhone 文件夹中.

However, you could try using the Browse tab instead. On my system (64-bit), the assembly is in the C:Program Files (x86)Reference AssembliesMicrosoftFrameworkSilverlightv4.0ProfileWindowsPhone folder.

这篇关于Windows Phone 7 和 System.Xml.Linq 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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