I have a WinForms application with a bunch of third-party links. This makes the output folder rather confusing. I would like to put the compiled / referenced dlls in a shared subdirectory in the bin / lib output folder - whatever - and just have the executable files (+ necessary configs, etc.) located in the output folder.
After some searching, I came across assembly probing ( http://msdn.microsoft.com/en-us/library/4191fzwb.aspx ) - and confirmed that if I installed it and manually moved the assemblies my application will work if they are stored in the specified subdirectory:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin" />
</assemblyBinding>
</runtime>
</configuration>
However, this does not solve the assembly part - is there a way to indicate where the link assemblies and library assembly assemblies go?
Only solutions that I can think of from my head are either post-assembly actions, or abandoning an idea, and using ILMerge or something like that.
There should be a better way to define the structure :-)
source
share