views:

289

answers:

1

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.

+1  A: 

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.

Stefan Egli
Question: how do you add DLLs manually after they have been filtered out? Thanks.
Hamish Grubijan
If you select the setup project in the solution explorer you can open the "File System Editor" in the solution explorer's toolbar. Then you select the folder you want the DLL to be (e.g. GAC) and use the context menu (right mouse click) to add a file (basically the same way you add a project output)... I just recommend that you have the DLL somewhere in a special folder that is under your solution directory... hope this helps
Stefan Egli
did it not work?
Stefan Egli

related questions