Compile Error - 'HtmlAgilityPack.HtmlNodeType' does not contain a definition for 'Attribute'

Feb 24, 2011 at 4:32 PM

Hello i checked out the project and when i try and compile i get the following error

htmlagilitypack\Trunk\HtmlAgilityPack\HtmlNode.Dynamic.cs(32,56): error CS0117: 'HtmlAgilityPack.HtmlNodeType' does not contain a definition for 'Attribute'

I checked and the enum isnt declared, any idea's?  should the trunk compile or am i overlooking some thing silly.

Andrew.

 

Feb 28, 2011 at 6:57 AM

same here :

changeset 85353 complie error

 

Feb 28, 2011 at 6:59 AM

change set 85353 build error ? i deleted the question marked .snk file , rebuild , no error but when referencing this dll , FileNotFoundException : Could not load file or assembly 'HtmlAgilityPack, Version=1.9.0.1, Culture=en-US, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Feb 28, 2011 at 1:51 PM

@frasera your error has been fixed, it was due to the experimental .NET 4.0 project being included in the solution. I removed that over the weekend

 

@dfang

The only place I see the snk error is under htmlagilitypack-85383\Branches\2.0.Experimental. That one is listed as version 1.9.0.1 and should not be used, thus the name Experimental

Trunk builds just fine for me. Do not use the fx.4.0 project, that was an experimental test of trying to use the .NET 4.0 dynamic features. Use the main HtmlAgilityPack project under trunk. I downloaded the changeset zip file and it built without a problem through both the HtmlAgilityPack2010.sln and HtmlAgilityPack20008.sln solution files 

Feb 28, 2011 at 2:16 PM

cool thanks, i did a clean checkout and its working now thanks.

Mar 10, 2011 at 9:24 AM

thanks very much !