HtmlMonkey | Lightweight HTML/XML parser written in C | Parser library
kandi X-RAY | HtmlMonkey Summary
kandi X-RAY | HtmlMonkey Summary
HtmlMonkey is a lightweight HTML/XML parser written in C#. It allows you to parse HTML or XML into a hierarchy of document node objects, which can then be traversed, or queried using jQuery-like selectors. The node objects can be modified or even built from scratch using code. Finally, you can use the classes to generate HTML or XML strings from the data. The code also include a WinForms application to display the parsed data nodes. This was mostly done for testing the parser, but offers some functionality that may be useful for inspecting the original markup.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of HtmlMonkey
HtmlMonkey Key Features
HtmlMonkey Examples and Code Snippets
Community Discussions
Trending Discussions on HtmlMonkey
QUESTION
I've been trying to wrap my head around the differences between the .NET Frameworks, .NET Core and .NET Standard. From what I've been reading, .NET Standard is kind of the lowest common denominator, and that libraries written using .NET Standard should be compatible with code written using the other frameworks.
But I've created a solution with a class library that uses .NETStandard 1.4 and an application that uses .NET Framework 4.6.1, and it appears the application is not able to use that library.
Wherever the application attempts to use a class from the class library, I get errors such as the following.
Error CS0012 The type 'IEnumerator<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Error CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Error CS1579 foreach statement cannot operate on variables of type 'HtmlMonkey.HtmlNodeCollection' because 'HtmlMonkey.HtmlNodeCollection' does not contain a public definition for 'GetEnumerator'
Can someone help me round out my understanding of these libraries such that my application can use my class library?
...ANSWER
Answered 2017-Oct-22 at 16:49I don't remember the exact sequence was used to create my original projects. As mentioned in the comments, I had both Visual Studio 2017 and the new Visual Studio 2017 Preview installed on my machine. It's even possible I used different versions to create each project in my solution.
Either way, I used the Visual Studio 2017 Preview to recreate the solution, again with the class library using .NET Standard, and a WinForms application that uses .NET Framework. And it appears to be working just fine. (I did not need to install anything manually with NuGet.)
So not a very clear resolution. I originally assumed it was a more concrete issue related to which frameworks I was referencing. But perhaps I'll leave the question in case anyone gets in a similar situation with the same error messages.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install HtmlMonkey
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page