You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The generated c# code for XElement type cannot compile #20445
This is because the code is generated based on corefx, where the default constructor for XElement is public. The generated code is like o.@MyElement = (global::System.Xml.Linq.XElement)ReadSerializable(( System.Xml.Serialization.IXmlSerializable)**new global::System.Xml.Linq.XElement());**
However the default constructor doesn't exist in dotnet standard, so the compile will fail.
Activity
huanwu commentedon May 1, 2017
This is because the code is generated based on corefx, where the default constructor for XElement is public. The generated code is like
o.@MyElement = (global::System.Xml.Linq.XElement)ReadSerializable(( System.Xml.Serialization.IXmlSerializable)**new global::System.Xml.Linq.XElement());**However the default constructor doesn't exist in dotnet standard, so the compile will fail.
huanwu commentedon May 5, 2017
The issue was fixed with dotnet/corefx#19244