Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 (older) installer project - two or more objects have the same target location

This installer project was created back in 2004 and upgraded ever since.

There are two offending dll files, which produce a total of 4 errors.

I have searched online for this warning message and did not find a permanent fix (I did manage to make it go away once until I have done something like a clean, or built in Release, and then in Debug).

I also tried cleaning, and then refreshing the dependencies. The duplicated entries are still in there.

I also did not find a good explanation for what this error means.

Additional warnings are of this nature:

Warning 36 The version of the .NET Framework launch condition '.NET Framework 4' does not match the selected .NET Framework bootstrapper package. Update the .NET Framework launch condition to match the version of the .NET Framework selected in the Prerequisites Dialog Box.

So, where is this prerequisites box? I want to make both things agree on .Net 4.0, just having a hard time locating both of them.

like image 289
Hamish Grubijan Avatar asked May 25 '10 15:05

Hamish Grubijan


1 Answers

I assume you are having more then one primary project outputs added to your installer. Furthermore these projects use the DLLs that generate the warnings, you can exclude them easily but as you observed this is not a permanent fix. In my solution I got rid of these warnings permanently by right clicking on the project outputs (that reference the DLLs) and defining an exclude filter (just use the name of the DLL). I do this on all project outputs that reference the DLL. As a final step I add the DLL manually to the installer (this requires the DLL to be in some well defined location (e.g. a lib folder). This way the DLL gets added only once and you got rid of the warning.

Right click on the setup project file, selecting Properties will show a little dialog that has a Prerequisites... button: That answers your second question I guess.

like image 99
Stefan Egli Avatar answered Oct 26 '22 16:10

Stefan Egli