I have an assembly ComnAssembly.dll which is used by 3 applications.
In other words there are 3 solutions which include ComnAssembly.dll
project.
In order to avoid manual copying I use post-build event command line
inComnAssembly.dll project. The problem is that I can copy ComnAssembly.dll
only to one application location only, for example:
copy ComnAssembly.dll C:\FirstSolution\bin\Debug\ComnAssembly.dll
So my question is: How can I copy ComnAssembly.dll to multiple locations?
For example to:
C:\FirstSolution\bin\Debug\ComnAssembly.dll
C:\SecondSolution\bin\Debug\ComnAssembly.dll
C:\ThirdSolution\bin\Debug\ComnAssembly.dll
Thanks
ismailp - 27 May 2005 01:58 GMT
Use a batch (.bat) file! Like following:
copy commassembly.dll C:\firstsolution\bin\debug
copy commassembly.dll c:\secondsolution\bin\debug
Ismail
Tamas Demjen - 31 May 2005 19:12 GMT
> So my question is: How can I copy ComnAssembly.dll to multiple locations?
> For example to:
> C:\FirstSolution\bin\Debug\ComnAssembly.dll
> C:\SecondSolution\bin\Debug\ComnAssembly.dll
> C:\ThirdSolution\bin\Debug\ComnAssembly.dll
I would set the Debugging -> Working Directory option to the path where
the DLL is located. That way you don't have to copy the DLL, the IDE
will find it. Just delete the multiple copies of the DLL from the Debug
directories.
If you need to run the app from outside of the IDE, add the directory to
the system path.
Tom