The Artima Developer Community
Sponsored Link

.NET Buzz Forum
"Could Not Copy Temporary Files to the Output Directory" and big VS.NET projects

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Hanselman

Posts: 1031
Nickname: glucopilot
Registered: Aug, 2003

Scott Hanselman is the Chief Architect at Corillian Corporation and the Microsoft RD for Oregon.
"Could Not Copy Temporary Files to the Output Directory" and big VS.NET projects Posted: Jun 8, 2004 2:08 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Scott Hanselman.
Original Post: "Could Not Copy Temporary Files to the Output Directory" and big VS.NET projects
Feed Title: Scott Hanselman's ComputerZen.com
Feed URL: http://radio-weblogs.com/0106747/rss.xml
Feed Description: Scott Hanselman's ComputerZen.com is a .NET/WebServices/XML Weblog. I offer details of obscurities (internals of ASP.NET, WebServices, XML, etc) and best practices from real world scenarios.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Scott Hanselman
Latest Posts From Scott Hanselman's ComputerZen.com

Advertisement

A fellow emailed me about the troubles he was having with his VS.NET solution.  He's trying to build into a shared binaries folder and is using direct Assembly references (rather than project references.) 

In fact, it appears that Intellisense is locking his assemblies just long enough to get one of the dreaded:

  • Could not copy temporary files to the output directory.
  • The file 'assembly name' cannot be copied to the run directory. The process cannot access the file because it is being used by another process.
  • error CS0016: Could not write to output file 'fully qualified path of an assembly' -- 'The process cannot access the file because it is being used by another process. '
  • Cannot delete the project output: is the file read-only? A failure occurred while attempting to start the application.

And that sucks.  Basically if you turn Copy Local to False and compile to one folder, you're screwed.

The moral?  We use NAnt for all builds.  It's fairly simple, repeatable, and IJW.  Otherwise, if your goal is to get all files to a shared bin, use a Post Build Event.

Read: "Could Not Copy Temporary Files to the Output Directory" and big VS.NET projects

Topic: Test Driven Development webcast Previous Topic   Next Topic Topic: New MSDN Smart Client Developer Center

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use