The type or namespace 'schemas' could not be found in the global namespace

Dec 7, 2013 at 3:34 PM
Hello all,

I'm trying to convert my rdlc file, so I used your utility to convert the 2008 RDLC Report Definition XSD.

My C# class generated gives the above error. The line is:

    public partial class LocIDStringWithDataTypeAttribute : global::schemas.microsoft.com.sqlserver.reporting.Item2008.Item01.reportdefinition.StringWithDataTypeAttribute, IXMetaData {
    
Am I missing an assembly or reference? I added Xml.Schema.dll to my project.

Thank you in advance.
Dec 10, 2013 at 2:48 PM
It was my fault.

After I ran LinqToXsd.exe and added the cs file to my project, I changed the namespace (which was schemas.microsoft.com.sqlserver.reporting.Item2008.Item01.reportdefinition) to my project's namespace. I guess I'll stop doing that and just reference the namespace.

It still would be nice if the LinqToXsd.exe had a namespace switch. I didn't see one.