-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Using the latest release 3.3.2, I generated XMLSchema.xsd.cs from XMLSchema.xsd and encountered the following errors:
/XMLSchema.xsd.cs(2992,63,2992,77): error CS1061: 'object' does not contain a definition for 'TypeDefinition' and no accessible extension method 'TypeDefinition' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
/XMLSchema.xsd.cs(2995,77,2995,91): error CS1061: 'object' does not contain a definition for 'TypeDefinition' and no accessible extension method 'TypeDefinition' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
/XMLSchema.xsd.cs(666,63,666,77): error CS1061: 'object' does not contain a definition for 'TypeDefinition' and no accessible extension method 'TypeDefinition' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
/XMLSchema.xsd.cs(669,77,669,91): error CS1061: 'object' does not contain a definition for 'TypeDefinition' and no accessible extension method 'TypeDefinition' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
/XMLSchema.xsd.cs(8199,31,8199,53): warning CS0414: The field 'wildcard.namespaceDefaultValue' is assigned but its value is never used
/XMLSchema.xsd.cs(1180,31,1180,53): warning CS0414: The field 'any.namespaceDefaultValue' is assigned but its value is never used
CompilerServer: server - server processed compilation - 073b94af-ae5c-4719-9276-3ea7b51bf348
The error seems similar to #10 (comment). You can repeat this by grabbing the XSD and running linqtoxsd on it:
wget https://www.w3.org/2001/XMLSchema.xsd
/// <summary>
/// <para>
/// Occurrence: optional
/// </para>
/// </summary>
public virtual object lang {
get {
XAttribute x = this.Attribute(langXName);
return XTypedServices.ParseUnionValue(x, lang.TypeDefinition); <-- error
}
set {
this.SetUnionAttribute(value, "lang", this, langXName, lang.TypeDefinition); <- error
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working