Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no more SelectSingleNode method in System.Xml? #20713

Closed
Cae2 opened this issue Mar 21, 2017 · 3 comments
Closed

There is no more SelectSingleNode method in System.Xml? #20713

Cae2 opened this issue Mar 21, 2017 · 3 comments
Milestone

Comments

@Cae2
Copy link

Cae2 commented Mar 21, 2017

Hello,

Im porting one application from .net 4.5 to .net core and could not find SelectSingleNode to use with Xpath to filter my xmls. This method isnt avaiable anymore? (System.Xml 4.3.0)

thanks

@svick
Copy link
Contributor

svick commented Mar 21, 2017

.Net Core 1.0 and .Net Standard 1.3 have SelectSingleNode as an extension method in the System.Xml.XPath.XmlDocument package (the page does not list .Net Standard 1.3, but the package is supported on it), so you will need to add a reference to that package to use it.

.Net Core 2.0 and .Net Standard 2.0 change it back to an instance method.

@danmoseley
Copy link
Member

@Cae2 if you want to try 2.0 that would be great, let us know how you find it:
https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/dogfooding.md

Please close this if your q was answered.

@Cae2
Copy link
Author

Cae2 commented Mar 22, 2017

@svick thank you! with that package everything went fine.

@danmosemsft I need to finish this port real quick, but will test 2.0 in another greenfield project, thanks!

@Cae2 Cae2 closed this as completed Mar 22, 2017
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants