Windows Phone 7和System.Xml.Linq的图书馆 [英] Windows Phone 7 and System.Xml.Linq library

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

问题描述

我试图按照本教程的WP7开发:的 http://mobile.tutsplus.com/tutorials/windows/introduction-to-windows-mobile-7-development/



这是谈话有关使用XElements,这需要 System.Xml.Linq的库,但我不能找到一种方法将其添加到项目引用。当我去补充参考,.NET列表是空的,它说这是过滤的Windows Phone 7。



本教程可能是过时的。是图书馆,甚至可用于WP7?是否有不同的方式来阅读平台上的XML?



我怎样才能得到它的工作?



编辑



同样的问题被描述如下:结果,
http://forums.netduino.com/index.php?/topic/1127-add-reference-net-tab-empty/



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



编辑:



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


解决方案

即使是Windows Phone的加入,从.NET选项卡时的参考汇编列表不应该是空的7项目,所以它听起来像你可能有与Visual Studio的问题。



不过,你可以尝试使用浏览选项卡来代替。在我的系统(64位),装配在C:\Program文件(x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone文件夹<。 / p>

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

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.

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?

How can I get it working?

EDIT:

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.

EDIT:

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

解决方案

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.

However, you could try using the Browse tab instead. On my system (64-bit), the assembly is in the C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone folder.

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

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