Visual Studio网站":Build(web):文件名已经在集合中"

Bor*_*bel 4 visual-studio-2013

我正在Visual Studio 2013中的一个网站(而不是Web应用程序)项目上工作,并且有间歇性的构建问题.构建输出显示每个目录构建(例如"构建目录'/ User /'.").但是,通常在不同的目录上,在不同的构建尝试期间,我收到以下错误(请注意文件名更改):

文件名'C:\ Users\xxxx\AppData\Local\Temp\2\Temporary ASP.NET Files\root\25143ee9\2d39f4f7\yhzrc1w3.pdb'已在集合中.参数名称:fileName

以下构建输出:

:Build(web):文件名'C:\ Users\xxxx\AppData\Local\Temp\2\Temporary ASP.NET Files\root\25143ee9\2d39f4f7\yhzrc1w3.pdb'已经在集合中.

我尝试删除临时目录中的所有内容,重新启动visual studio,绕过Visual Studio(使用aspnet_compiler构建),以及做一场雨舞.但是,无论我尝试建立间歇性失败.

有没有办法在Visual Studio中看到构建过程中更精细的输出?我已经尝试将构建输出设置为详细("工具" - >"项目和解决方案" - >"构建和运行" - >"MSBuild项目构建输出详细程度:").任何想法将不胜感激!

谢谢!

Bor*_*bel 9

我最终找出导致问题的原因.

我已从ReportViewer 10升级到ReportViewer 11,并在web.config中添加了以下行:

<buildProviders>
   <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</buildProviders>
Run Code Online (Sandbox Code Playgroud)

这导致间歇性构建失败.我删除了buildProvider标签,它构建和部署就好了.