在使用Visual Studio2012中的本地IIS Express调试我的MVC4应用程序时,每次我
Description:
Could not write to output file '...\obj\Debug\some...dll'
The process cannot access the file because it is being used by another process
File: CSC我总是必须从系统托盘关闭/终止IIS,然后它才能构建和运行。
这是soo anoying -这个问题有没有好的解决方案?
我查看了http://www.csharp411.com/run-asp-net-and-iis-on-windows-vista-and-7-home-premium/,它指的是IIS和inetmgr.exe --我在IIS-Express中找不到!
谢谢!
发布于 2013-01-16 02:19:37
在Windows上,你不能打开其他地方已经打开读取的文件进行写入(除非之前打开该文件的程序特别允许-内核不会对正在运行的文件执行此操作)。但是,您可以重命名正在使用的文件,因此可以将以下内容添加为MSVC中的预生成事件:
ren ...\obj\Debug\some...dll ...\obj\Debug\some...dll.bak根据需要替换路径。但是我不确定你的IIS会不会接受。
发布于 2013-05-29 20:27:22
不确定是不是同样的问题,但可能与这个问题有关:Visual Studio Could not write to output file '...\obj\Debug\Foo.Bar.dll"
https://stackoverflow.com/questions/14344136
复制相似问题