I have an XSD containing a simple type:
<xs:simpleType name="csharpName" id="csharpName">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Za-z][A-Za-z0-9_]*" />
</xs:restriction>
</xs:simpleType>
Now when I use this type:
<xs:element name="typeName" type="csharpName" />
LINQ to XSD generates
this.SetElementWithValidation(XName.Get("typeName", ""), value, "typeName", global::.csharpName.TypeDefinition);`
Pay attention to ::. after global. Now this point is very wrong, I assume that I am missing a namespace. Now, if I delete the point manually, it works fine, but I would prefer not to delete dozens or so in each generation. Do you have any ideas?
source
share