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