相关疑难解决方法(0)

Visual Studio无法写入输出文件'...\_ \netj\Debug\Foo.Bar.dll"

我在Visual Studio 2010中编译一个大的c#解决方案时遇到了这个错误.每次编译后我都要删除此解决方案使用的项目之一的obj文件夹.否则我收到以下错误:

Could not write to output file '...\obj\Debug\Foo.Bar.dll'
The process cannot access the file because it is being used by another process
Run Code Online (Sandbox Code Playgroud)

我一直在寻找互联网上的解决方案,实际上发现/尝试了一些解决方案.

例如:很多人对开发论坛被建议不开始编译,而用户控件(在一些其他来源从设计师打开).

其他一些人使用预构建脚本来删除obj文件夹,这个特殊的解决方案是可以接受的,但如果发布的项目是一个广泛使用的库,它的重新编译将导致重新编译"父"项目.

.net c# compiler-errors build visual-studio

14
推荐指数
1
解决办法
2万
查看次数

标签 统计

.net ×1

build ×1

c# ×1

compiler-errors ×1

visual-studio ×1