Share dataset.xsd files between projects

  • Thread starter Thread starter Magnus Bergh
  • Start date Start date
M

Magnus Bergh

I have a solution which contains multiple projects (different
applications). Every project use the same typed dataset (and also a few
other shared code files).

I tried to remove the dataset.xsd from the project and add it as a
linked items (files in a different direcory on disk) instead but this
cause errors in the designer when I try to open any form using the
dataset. If I change back back to include the dataset in the project it
works fine.

Any ideas why this is happening and how can I share the dataset (ie to
only have the dataset files in one physical location sharing it between
my projects)?
 
Magnus,

Are you trying to share it at design time, run time, or both?

I would recommend having a "data layer", that contains the dataset and such
logic, and reference it from the other projects.


Hope this helps,

Steve
 
Are you trying to share it at design time, run time, or both?

I would recommend having a "data layer", that contains the dataset and such
logic, and reference it from the other projects.

I want to share it at design time. For this application (compact
framework) it is really not necessary to share it at run time.

I have tried to remove the XSD file and then add it again as a linked
item (and putting it in a separate directory) but this cause errors in
the designer when I try to open any form using the dataset.

I have one other project in the solution that is still using the XSD
file as a linked file and that works fine. However that application is
not using any forms (well at least not any forms directly using the
dataset, only access it in a batch operation).
 
Back
Top