How to use XPathSelectElement in .Net Core 1.0?

In .Net 4.X this extension method is under System.Xml.XPath .

However, I would like to know how can I find / use it in .Net Core? I have a class library.

The porting tool shows nothing about XPathSelectElement .

Or maybe any replacement in the .Net kernel?

Thanks a lot!

+6
source share
2 answers

You need to add the package System.Xml.XPath.XDocument 4.0.1 . This package provides extension methods that add System.Xml.XPath support for the System.Xml.XDocument package.

Run the command below in the package manager console.

 PM> Install-Package System.Xml.XPath.XDocument -Version 4.0.1 

You can also install it from the NuGet package manager with NuGet 2.12 version NuGet 2.12 or higher.

+5
source

As Lex Lee suggested, we could use this website to find the package name. In my case, this is: System.Xml.XPath.XDocument .

0
source

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


All Articles