How to use XPathSelectElement in .Net Core 1.0?

前端 未结 2 769
误落风尘
误落风尘 2021-01-18 04:04

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

However I\'d like to know how could I find/use it in .Net Core? I have a clas

相关标签:
2条回答
  • 2021-01-18 04:40

    As suggested by Lex Li, we could use this website to search the package name. In my case it is: System.Xml.XPath.XDocument.

    0 讨论(0)
  • 2021-01-18 04:53

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

    Run below command in Package Manager Console.

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

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

    0 讨论(0)
提交回复
热议问题