PC Review


Reply
Thread Tools Rate Thread

Using DLL reference in other projects same solution

 
 
Divyesh
Guest
Posts: n/a
 
      21st Sep 2006
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




 
Reply With Quote
 
 
 
 
=?Utf-8?B?TU1B?=
Guest
Posts: n/a
 
      21st Sep 2006
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.

"Divyesh" wrote:

> 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
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VSS problem in using same projects in differenet solution Manikandan Microsoft C# .NET 3 26th Jun 2007 07:14 AM
Include dependent project in solution and reference, or no and just reference .dll? Ronald S. Cook Microsoft VB .NET 1 26th May 2007 09:25 PM
bc30311 when linking 2 projects to static dll in same solution jkodroff@gmail.com Microsoft VB .NET 2 15th Dec 2005 04:57 PM
Re: I have a VB.Net Module of constants in that is needed in 2 different projects in the same solution. What is th best way 2 reference it? Carlos J. Quintero [.NET MVP] Microsoft VB .NET 0 8th Mar 2005 12:00 PM
Can 2 different projects in the same solution share the same strongly typed dataset moondaddy Microsoft ADO .NET 3 5th May 2004 01:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 AM.