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. Since I
want the majority of the UI to be the same for both clients, I have divided
up my solution for the main (always connected) client to seperate the
sections that will be used in both applications from those that will be
unique to one or the other. My question is: what are the mechanics of using
a project in multiple solutions, particularly in that some of the items that
the shared project must reference will be different between the 2 solutions.
(E.G. there will be a DataConnection reference which in the connected client
will need to connect to the database and in the disconnected client will
need to "connect" to the local file.)
TIA
Ron L 3 3295
Instead of sharing whole projects, I would share code files. That is, I
would create 2 projects but using the same code files from a shared folder.
You can use shared code files using Add Existing Item menu of a project, and
in the dialog drop down the Open button (with an arrow) and use Link File
instead of Open.
Also, you may want to use conditional compilation is some file or method
must have a different behavior depending on the project. Projects allow you
to define compilation constants (Project properties, Configuration
Properties, Build node) and you can use them in your code:
#If PROJECT_A Then
' Connect to remote database
....
#Else
' Connect to local database
....
#End If
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers: http://www.mztools.com
"Ron L" <ro**@bogus.Add ress.com> escribió en el mensaje
news:u3******** ******@TK2MSFTN GP10.phx.gbl... 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. Since I want the majority of the UI to be the same for both clients, I have divided up my solution for the main (always connected) client to seperate the sections that will be used in both applications from those that will be unique to one or the other. My question is: what are the mechanics of using a project in multiple solutions, particularly in that some of the items that the shared project must reference will be different between the 2 solutions. (E.G. there will be a DataConnection reference which in the connected client will need to connect to the database and in the disconnected client will need to "connect" to the local file.)
TIA Ron L
Carlos
Thank you for the response. I had been wondering if seperate projects
with common code files was the way to do it, or if there was a better way.
Ron L
"Carlos J. Quintero [.NET MVP]" <ca*****@NOSPAM sogecable.com> wrote in
message news:uO******** ******@TK2MSFTN GP14.phx.gbl... Instead of sharing whole projects, I would share code files. That is, I would create 2 projects but using the same code files from a shared folder. You can use shared code files using Add Existing Item menu of a project, and in the dialog drop down the Open button (with an arrow) and use Link File instead of Open.
Also, you may want to use conditional compilation is some file or method must have a different behavior depending on the project. Projects allow you to define compilation constants (Project properties, Configuration Properties, Build node) and you can use them in your code:
#If PROJECT_A Then ' Connect to remote database ... #Else ' Connect to local database ... #End If
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA You can code, design and document much faster. Free resources for add-in developers: http://www.mztools.com
"Ron L" <ro**@bogus.Add ress.com> escribió en el mensaje news:u3******** ******@TK2MSFTN GP10.phx.gbl...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. Since I want the majority of the UI to be the same for both clients, I have divided up my solution for the main (always connected) client to seperate the sections that will be used in both applications from those that will be unique to one or the other. My question is: what are the mechanics of using a project in multiple solutions, particularly in that some of the items that the shared project must reference will be different between the 2 solutions. (E.G. there will be a DataConnection reference which in the connected client will need to connect to the database and in the disconnecte d client will need to "connect" to the local file.)
TIA Ron L
Hi Ron,
Notice that while you can create different configurations for a project,
such as ProjectA_Debug, ProjectA_Releas e, ProjectB_Debug, ProjectB_Releas e,
the assembly name is the same for all of them (it is not configurable per
configuration, only the output folder), so if you want 2 assemblies, you
need 2 projects...
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers: http://www.mztools.com
"Ron L" <ro**@bogus.Add ress.com> escribió en el mensaje
news:OO******** *****@TK2MSFTNG P10.phx.gbl... Carlos Thank you for the response. I had been wondering if seperate projects with common code files was the way to do it, or if there was a better way.
Ron L This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: AARON PECORARO |
last post by:
I need to split apart my web application into multiple projects to allow it
to be distributed in parts, but all of the projects need to work together
(ie. they need to share session information). Does anyone have any
suggestions or solutions to this problem?
Thanks,
Richard Bowman
|
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.
|
by: epigram |
last post by:
I've been creating some toy ASP.NET apps in an effort to understand the
technology. I've something odd with regards to project/solution creation.
If you create a new asp.net application, it appears that the project files
get created in the URL specified Location field on the New Project dialog
box. This makes sense to me. What is confusing is that the solution file
gets created in a folder with the same name as the location folder (the...
|
by: sameer |
last post by:
Hi ,
Visual Studio 2003, VB.NEt
my VB.Net solution has 10 project files, 1exe and 10 dlls in it and when i
load up the solutions it takes for ever to load up and is pretty slow. Is
there any way (like in VB6) that i could have multile solution files having
combination of different project files and when i load up those solutions
only the selected projects loads up in source code and the others in dlls and
i shuld still be able to run...
|
by: Rommellion |
last post by:
We have 5 to 6 projects .net running on production, in which each one
has its own virtual direstory, however we need to add up two more and
link them all together so they can share same single session state. we
are doing this for some Authentication and Role identification
purposes.
We dont want to use any Db like storing session in SQL Server or
whatever, also we dont need to use niether encryption nor passing
parameters, because we will...
| |
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
|
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= |
last post by:
We have a complex VS solution with several web projects. The reason is the
applications share a lot of business logic that change often and we want to
observe the implications of all changes.
But the webprojects also share some user controls so we would like to have a
common folder where all common UI is placed.
What we have come up with so far is to create a CommonUI folder and in IIS,
from each web application, link the CommonUI as a...
|
by: Meteor |
last post by:
I have a vs2005 solution containing about 5 projects, three of which
have their own .settings files.
When I deploy the application, I want all the settings to be in one
place - configurable - presumably in an app.config file where I can
edit them. The settings will be used by a windows service,
filewatcher, database access application.
How do I achieve this?
|
by: Looch |
last post by:
All,
I created a class in a windows application and I'd like to be able to
pass an instance of that class as a method parameter to a web service.
The class contains 100 variables. I tried adding a new class to the
web service (using VS Web Developer Express) and recreated the
variables to match what was in the windows application class but when
I try to pass an object as a parameter I'm getting a 'Cannot
implicitly convert from...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
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...
| |