Error 2 The type 'Xml.Schema.Linq.XTypedElement' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xml.Schema.Linq, Version=2.0.2.56002, Culture=neutral, PublicKeyToken=47d0c84d0ebb13e5'. Xxx.cs XxxCLass 66 30

Oct 13, 2010 at 4:46 PM
Edited Oct 13, 2010 at 4:47 PM

Hi,

 

I have a two projects , one (A) is a library, and it is using the output of the LinqToXsd.exe. Another project is referencing the A, but the compiler is complaining about not referencing Xml.Schema.Linq assembly. Is the reason the fact that the generated class is using as a parameter  or return value a type that is declared in the Xml.Schema.Linq assembly?

If so it would be nice to make a total hiding of these types, it would be much more elegant solution.

 

thanks and keep up the good work!

 

bl

 

edit: pardon me for this awful title :)

Developer
Oct 16, 2010 at 7:03 AM

Hi,

You may add generated sources and source code of Xml.Schema.Linq into one assembly or even directly into your project.

Best regards, Sergey Shandar.

Oct 16, 2010 at 3:43 PM

Hi,

 

thanks, that is a good idea.

 

br
Lehel