Warning from Setup Project: Two or more objects have the same target location

I

ImageAnalyst

In my setup/installer for my solution, I get several warnings:

Warning 16 Two or more objects have the same target location
('[targetdir]\interop.shell32.dll')
Warning 18 Two or more objects have the same target location
('[targetdir]\interop.comctl2.dll')

Each of these files shows up twice in the list of files to install.
What is happening is that the setup project wants to install these
files in the Application Folder of my target system and it has two
source files of the same name to put into the same target file. For
example, it wants to take the two files
[SolutionDir]\bin\interop.shell32.dll'
[SolutionDir]\obj\Release\interop.shell32.dll'
and put them both into the file
[targetdir]\interop.shell32.dll'
thus it understandably gives a warning. (It's really the same file but
for some reason just lives in two different locations - VS2005
automatically put them there, I didn't) But the question is how do I
get rid of the warning? There doesn't seem to be any way to get rid of
one of the files. I can right click and say cut but that just grays it
out and doesn't really get rid of it. Hitting the delete key does no
good either. I have lots of other interop files listed but only those
two show up twice for some reason (any explanation for this?).
 
I

ImageAnalyst

When I click on one of the items in the list of files to install, and
check the Properties window, there is an Exclude property. If I set
this to true, it will make that file disappear from the list, however
the red squiggle still underlines the other file of the same name in
the list, and there are still TWO warnings given.
 

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