Using DLL reference in other projects same solution

D

Divyesh

Hello,

I need some help to get out of cumbersome process.

For example, I've one solution with 2 EXE & a DLL project. DLL is referred
by both exe projects hence I've added DLL as reference to both projects.
As all three projects are part of single package I've kept their output
directory same.

Now, everytime i'm building DLL, i'm suppose to delete reference from other
2 exes, to avoid following error comes
The file 'my.dll' cannot be copied to the run directory. The process cannot
access the file because it is being used by another process.Could not copy
temporary files to the output directory.

but its very cumbersome process considering, i actually have 10 exe & 5
dlls with cross references. Any solution?


Thanks & Regards,
Divyesh Shah
 
G

Guest

1) Right Click on your sln.
2) Select project build order
3) Set the order in which you want your projects to be built. (Which in your
case will be the dll 1st)
4) Try rebuilding Sln.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top