Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / April 2004

Tip: Looking for answers? Try searching our database.

compiling dependencies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dan - 17 Apr 2004 01:26 GMT
Regarding VS.NET 2003
  I have a solution with two projects in it. One is a C# class library, and the other is a C# win forms app. The winforms app has the class library as a dependency. Compiling the whole solution fails, because the IDE complains that it cannot 'copy the output file [of the class library] to the directory because the file is in use'. So, I have to remove the class library as a dependency of the winforms app, compile the class library seperately, add the class library back in as a dependency, then compile the winforms app. This never happened before- what gives

Thanks, Da
Robert Gruen [MSFT] - 21 Apr 2004 16:46 GMT
Dan,

Check the reference for the class library, make sure you add it as a
project reference and not as a file reference.  If you add it as a file
reference VS.NET will lock the file.  Also, on the properties for th
reference make sure that CopyLocal = true.

Thanks!  Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
#Thread-Topic: compiling dependencies
#thread-index: AcQkEpA7WWCJl4CtRMaBq/HdyVxS/Q==
#X-WN-Post: microsoft.public.vsnet.ide
#From: =?Utf-8?B?ZGFu?= <daningalla@hotmail.com>
#Subject: compiling dependencies
#Date: Fri, 16 Apr 2004 17:26:02 -0700
#Lines: 5
#Message-ID: <F3A5A408-383F-4F3A-97E5-76EC35D53083@microsoft.com>
#MIME-Version: 1.0
#Content-Type: text/plain;
#    charset="Utf-8"
#Content-Transfer-Encoding: 7bit
#X-Newsreader: Microsoft CDO for Windows 2000
#Content-Class: urn:content-classes:message
#Importance: normal
#Priority: normal
#X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
#Newsgroups: microsoft.public.vsnet.ide
#Path: cpmsftngxa10.phx.gbl
#Xref: cpmsftngxa10.phx.gbl microsoft.public.vsnet.ide:11784
#NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
#X-Tomcat-NG: microsoft.public.vsnet.ide
#
#Regarding VS.NET 2003:
  I have a solution with two projects in it. One is a C# class library,
and the other is a C# win forms app. The winforms app has the class library
as a dependency. Compiling the whole solution fails, because the IDE
complains that it cannot 'copy the output file [of the class library] to
the directory because the file is in use'. So, I have to remove the class
library as a dependency of the winforms app, compile the class library
seperately, add the class library back in as a dependency, then compile the
winforms app. This never happened before- what gives?

Thanks, Dan

#
Rudy Ray Moore - 27 Apr 2004 01:37 GMT
I ported a multi-project workspace from VS6 to VS71/2003/.net

I do not have this problem.  Let me know if I can help.  FYI, I'm not
building "managed" code.

> Regarding VS.NET 2003:
>    I have a solution with two projects in it. One is a C# class library, and the other is a C# win forms app. The winforms app has the class library
as a dependency. Compiling the whole solution fails, because the IDE
complains that it cannot 'copy the output file [of the class library] to the
directory because the file is in use'. So, I have to remove the class
library as a dependency of the winforms app, compile the class library
seperately, add the class library back in as a dependency, then compile the
winforms app. This never happened before- what gives?

> Thanks, Dan

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.