473,625 Members | 3,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Share dataset.xsd files between projects

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)?

Jun 1 '07 #1
2 3015
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

"Magnus Bergh" <ma*****@sbbs.s ewrote in message
news:MP******** *************** @msnews.microso ft.com...
>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)?

Jun 4 '07 #2
In article <uf************ **@TK2MSFTNGP04 .phx.gbl>,
st*******@commu nity.nospam says...
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).

Jun 4 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2704
by: Brad Wood | last post by:
Using VS2003, I can't add an existing class to a project w/o the IDE creating a copy of it. I want multiple projects to be able to share a central copy of a class. I can't compile the shared class into a library because one of the executables that uses the class needs to be a self contained executable that will be downloaded and immediately executed on a PDA. I can't GAC the shared library so that both applications can use it because...
1
3389
by: Macca | last post by:
Hi, I have a C# Solution/Application that contain 4 projects. Each of these projects needs at some time to access the same database. I would like to know how to share a single connection between these projects as i assume this would be more efficient than having a separate connection string for each project.
1
1290
by: Bill Reynen | last post by:
Hello, Working in ASP.NET. I want to create several projects on the web server /Online /Online/App1 /Online/App2 /Online/App3
5
5086
by: Raed Sawalha | last post by:
We have a web application with at least 570 Pages and 10's of user controls ....all under project name LinkDevProject ...recently we start separating the project into multiple projects ....the problem we have in user controls how to share them without duplicate the control in each project ....we need to remain the controls in main project and all subproject use them .....what is the avaiable technique to achieve this?
8
1976
by: William Meitzen | last post by:
Does someone know how I can get two projects to share a common class? Something like this: solution WholeShmeer project1 code1 CommonClass project2 code2 CommonClass
3
3296
by: Ron L | last post by:
I have an application that I am developing that is a front end for a SQL database. We will also be developing a subset of the UI that will work as a (mainly) standalone client that will make a connection to the database, copy the relevant data to a local file, and disconnect from the database. The users will then be able to make modifications using the UI, and when a connection is available they can connect and upload their changes. ...
2
2331
by: Mike9900 | last post by:
We need to deploy 2 or more projects that share the same assemplies , such as common.dll. And so we need to put all these files in the same //bin directory in the server with common files. But the assebmly name for the proect is the same. For example, we need different assemblies for each project, for example as1.dll, as2.dll and the common files for example common.dll. So when we deply them, we put all these files in one directory,for...
1
1107
by: Waldemar Grzywiński | last post by:
Is possible (like desktop projects 'link file') share code files between web projects ? Need I create shared assembly (dll)? VS 2003.
15
5798
by: Neo | last post by:
Hello All, I found that ASP.net website only accepts code withing site directory. This creates big hurdle in shairng code. How to share code between two websites, like the way share between two non-website code? -Pravin
0
8189
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8694
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8497
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7184
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4193
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.