And the xsd schema from VS2005 is generally not valid in VS2008.
Do we really have to rebuild evey DataSet schema that we need to change?
Kyle Jedrusiak
> We have complete strongly typed datasets that were created in VS2005 and
> as long as we don't make any changes thay continue to work.
[quoted text clipped - 7 lines]
>
> Kyle Jedrusiak
blackdoguh@gmail.com - 30 May 2008 14:30 GMT
Hi Kyle
I just came across that same problem. I lost some valuable time
since i did not read carefully the error I got:
The type 'MySchemas.SimpleDataset' is defined in an assembly that is
not referenced. You must add a reference to assembly 'MySchemas,
Version=1.0.3072.27689, Culture=neutral, PublicKeyToken=null'.
Later I noticed that the tables that are part of
MySchemas.SimpleDataset dataset inherit from TypedTableBase class
which is defined as
Namespace: System.Data
Assembly: System.Data.DataSetExtensions (in
System.Data.DataSetExtensions.dll)
public abstract class TypedTableBase<T> : DataTable, IEnumerable<T>,
IEnumerable where T : DataRow
To solve your problems you should reference this assembly
(System.Data.DataSetExtensions.dll) in every project where you use
your custom datasets - that at least worked for my case. I suppose
there are more elaborate ways to solve this problem, but as a fast fix
this could do it.
Regards, Yavor Naumov