Hi sloppydec,
You said: IfI create a simple class library project and add a reference to an external framework library dll, then, if I create a Web Setup Project to deploy this class library and add the primary output from the class library project, I get all the dependencies of the referenced external dll included as well, which i do not want?
From my experience, this is a general case we would meet. In my setup project, the external dlls would also be added. We can follow the steps below to remove these external dlls:
1. Open the Solution Explorer.
2. In the Detected Dependencies folder of the Setup Project, select all the dlls you want to remove.
3. Right click all the selected dlls and select Exclude.
4. The removed dlls would disappear in File System view.
You also said: What confuses this issue further is that i have tried this on a friends machine with what I consider to be an identical setup, even to the extent of exporting my visual studio settings and importing them to his IDE, when he builds exactly the same dll (copied from my class librarybuild project), he does NOT get the dependent dlls of the externally referenced framework dll included in his project output. This scenario is what I want to achieve.
From my experience, I have never met such a case. Could you please provide more information about your friend’s machine, such as Visual Studio version and .Net framework version?
Let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.