Does not contain a definition and no extension method accepting a first argument of type could be found (are you missing a using directive or an assembly reference?)

Solution of does not contain a definition and no extension method accepting a first argument of type could be found (are you missing a using directive or an assembly reference?).

Just add the below namespace:

System.Xml.Linq.XElement;

About the Author

avatar