Two or more objects have the same target location '<location>'
You are attempting to install two or more copies of the same file in the same folder. Only one copy can be installed; however, multiple copies can be placed in the same folder in the File System Editor provided that each has a unique condition.
To correct this error
-
Double-click the error in the Task List to go to the file in the File System Editor.
-
Delete the duplicate file, or select the Condition property in the Properties window for each copy of the file and enter a unique condition for each.
Note If the Package files property for the project is set to As loose uncompressed files this error will still occur. You can correct this by adding a Custom folder and setting its DefaultLocation property to the same value as the first folder, then moving the second copy of the file to the new folder.
See Also
- 10/22/2009
- joeller
- 9/28/2009
- dorenstein4a
- Right click on the Solution file, select "Clean"
- Then, on your install project, navigate down to the "Detected Dependencies" folder.. right click and select "Refresh Dependencies".. Since your solution is clean, all your dependencies will be cleared.
- Next, right click on your setup project and select "Rebuild"
- 9/9/2009
- MN_S
- 2/6/2008
- George Elam
- 7/23/2008
- Thomas Lee
It is not possible to delete or set Conditions to fix this error, as suggested above. When setup project is including several "Primary Output from ProjectX", the dependencies are causing this warning. And you cant delete dependencies or individual projects wont compile.
Search net for "Two or more objects have the same target location" and you will see the problem many are having with this "warning" - I have 72 of them in a setup project and I cant get rid of them. I including the required Primary Output from Project as the setup targets and VS2008 is causing the problem itself by adding duplicate dependencies. You cannot delete them to remove the warning and there is no pragma/warning number to just ignore it!
Please improve, thanks.
- 7/23/2008
- pepepep323245542
- 7/23/2008
- Thomas Lee