473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

building a service application at the same time as desktop app

I am writing a service that sits on a single pc. It does occasional work to
a database eg logging users out after time period, sends emails in the
background, processes scheduled jobs etc
Its part of a larger project. To date I've kept the service solution
separate from the desktop solution but I think I'd like to combine the two
as they're sharing so much code.
Is this an ok thing to do?
Is it possible to have 2 executables into one solution? It would make it
much easier for me to keep them in synch if so.
I've created a setup project for each one as they're in two solutions. Can I
have 2 setups in the same solution? (Using win installer that comes with
visual studio 2005)
Is there any way, using what comes with visual studio, that someone
installing the software can choose whether to install none/either/both
applications easily from a single setup?

thanks
Claire
Oct 18 '07 #1
1 1100
Claire,

You could combine the solutions into one, but you are still going to
have separate projects in the solution corresponding to your desktop app and
your service app.

To that, I would add a (or a number) of class library applications which
would encapsulate the shared functionality between the two. Then, you would
set references to that (or those) class libraries, and begin to move the
shared code from the two separate projects to the library projects.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Claire" <cc@nospam.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>I am writing a service that sits on a single pc. It does occasional work to
a database eg logging users out after time period, sends emails in the
background, processes scheduled jobs etc
Its part of a larger project. To date I've kept the service solution
separate from the desktop solution but I think I'd like to combine the two
as they're sharing so much code.
Is this an ok thing to do?
Is it possible to have 2 executables into one solution? It would make it
much easier for me to keep them in synch if so.
I've created a setup project for each one as they're in two solutions. Can
I have 2 setups in the same solution? (Using win installer that comes with
visual studio 2005)
Is there any way, using what comes with visual studio, that someone
installing the software can choose whether to install none/either/both
applications easily from a single setup?

thanks
Claire

Oct 18 '07 #2

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

Similar topics

7
by: Lalit | last post by:
Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu fo this icon. Can i do this? With regards, Lalit
15
by: Chakkaradeep | last post by:
Hi all, i have written a Service,now i want to execute another application (for eg;calc.exe) in the service....how will i perform it??... i tried using this.... /**************Executing a...
5
by: Steve Long | last post by:
Hello, I hope this question isn't too fundamental. I have a feeling it is. I'm trying to start a winform app from a windows service written in C#. I created a class and used it from a windowsforms...
3
by: Lubomir | last post by:
Hi, I read that interactive windows services will not be allowed to run under Wista. I would like to ask what exactly is the interactive service. It is supposed to be a service that communicates...
7
by: Ahmed Perlom | last post by:
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the...
8
by: Rob R. Ainscough | last post by:
I have a VS 2005 Windows Service with a Installer project as part of my solution. The Service installs fine but I can't seem to make either of these work: 1. Have the service start after...
4
by: Don Curtis | last post by:
If I use GDI+ within a service, what problems can I expect? Why can't GDI+ be used within a service? http://msdn2.microsoft.com/en-us/library/system.drawing.aspx "Classes within the...
6
by: Christiano Donke | last post by:
Hey there... Plz... I'm writing a Windows Service that will check every x minutes if another program is running. If it cannot find the application running, it launches it... I had already...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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,...
0
isladogs
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...

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.