Environment: WPF, .NET 4.0, VS 2010
I am developing an application which has one main app that will internally invoke sub application and the solution structure (mentioned only the required projects for simplicity) is as below:
Solution.sln
MainApp (WPF application)
SubApp (wpf application)
Assets (class library)
I have added reference to the Assets project into MainApp and SubApp. I added Setup project and:
- Added MainApp primary output (this detects Assets.dll as a dependency).
- Created a folder SubApp (right click Application Folder and add new folder) and added SubApp primary output inside this folder). This too detects Assets.dll as dependency (which is correct!)
When I build the setup project, run the MSI and install the application, I see target application folder (c:\program files\default company) structure as below:
MainApp
- MainApp.exe
- Assets.dll
- SubApp (folder)
- SubApp.exe
- Assets.dll (I don't want this to appear here simply because there will be SubApp1, SubApp2 and so on in future who all will refer to the same assets dll)
How can this be achieved? I am sorry if question has become too long but I believe in explaining things in one shot than to provide information in bits and pieces.