一个程序集被其他项目引用后,编译的时候会出现如下错误: 未能将临时文件复制到输出目录中。 无法将文件“Test.dll”复制到运行目录。另一个程序正在使用此文件,进程无法访问。 需要关闭Visual Studio.Net,删除以前生成的dll文件后才能重新编译,怎样解决? 常见的两种可能性是: > 这个Dll是不是隶属于一个WinForm程序,而这个Windows程序正在运行中? > 这个Dll是不是被注册成COM组件了? 可以用FileMon(http://www.sysinternals.com/ntw2k/source/filemon.shtml)这个工具来查看一下到底是什么进程在使用这个文件。 Download Filemon (x86- 76 KB) - you plan on using Filemon on Win9x
Download Filemon (x86 - 76 KB) - you plan on using Filemon on WinNT/2K/XP/2K3 The files below are for 64-bit versions of Windows: Download Filemon (XP/Server 2003 64-bit Edition/x64 - 96 KB) 
|