Setup Project

G

Guest

I have a Visual Studio Solution with 4 four projects.

1) class library
2) console app
3) windows service
4) setup project

The console app en and the windows service both use the dll from the class
library.

I added two folders to the Application path in the Setup project,
Commandline and Service. I copied the output from my console app project to
the commandline folder and the output from the window service to the service
folder.

I added the output from the console app first. So the dll is also copied to
the commandline application. However, when I add the output from the service
project the dll is not copied. I figure this is because the setup project
detects that both outputs have a reference to the same class library. But
because I put the output from console app en windows service in two diffrent
folders, only one of them has the dll from the class library.

How can I fix this?
 
G

Gary Chang[MSFT]

Hi Philip,
How can I fix this?

I suggest two solutions to you:

1. If there isn't any particular reason to install the console application
as well as the Windows service via a single setup project, the general
convention is to create two stand-alone setup projects for those two
projects respectively.

2. If you wants to install the console application and the Windows service
with a single setup project, you can add that dependent dll file into the
target folder manually(Right click the setup project node in Solution
Explorer, choose View\File System, then right click the target folder in
the corresponding File System on Target Machine list and choose the Add to
add the dll file in it).


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng2006 when prompted. Once you have entered the
secure code mmpng2006, you will be able to update your profile and access
the partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top