Windows Phone 7 Library and System.Xml.Linq

I am trying to follow this WP7 development guide: http://mobile.tutsplus.com/tutorials/windows/introduction-to-windows-mobile-7-development/

Speaking of using XElements, which require the System.Xml.Linq library, but I cannot find a way to add it to the project links. When I go to add the link, the .NET list is empty and it says that it is filtered on Windows Phone 7.

The tutorial may be outdated. Is the library accessible even for WP7? Is there any other way to read XML on the platform?

How can I make it work?

EDIT:

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

The proposed fix does not work for me.

EDIT:

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

+4
source share
3 answers

The build list should not be empty when adding a link from the .NET tab even for a Windows Phone 7 project, so it looks like you might have a problem with Visual Studio.

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

+6
source

This is the correct assembly, you need to work with XML in Windows Phone 7 . Not sure why it doesn't appear in the Add Reference dialog box.

It should look like this:

Add Reference WP7

What version of the WP7 developer tools do you use?

+9
source

Yes, LINQ to XML is definitely available for Windows Phone 7. If you donโ€™t see any available links to add, it sounds like your development environment is a bit confused ...

+2
source

Source: https://habr.com/ru/post/1341320/


All Articles