我正在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项目构建输出详细程度:").任何想法将不胜感激!
谢谢!
我在 PowerShell 中有一个工作循环,它将从 JSON 对象中删除子成员(如果存在)。但是,我相信有一种更干净的方法可以做到这一点。你知不知道怎么?
for ($i = 0; $i -lt $destinationReleaseDefinitionJSON.environments.Count; $i++) {
$destinationReleaseDefinitionJSON.environments[$i] = $destinationReleaseDefinitionJSON.environments[$i] | Select-Object * -ExcludeProperty queueId
for ($ii = 0; $ii -lt $destinationReleaseDefinitionJSON.environments[$i].deployPhases.Count; $ii++) {
$destinationReleaseDefinitionJSON.environments[$i].deployPhases[$ii].deploymentInput = $destinationReleaseDefinitionJSON.environments[$i].deployPhases[$ii].deploymentInput | Select-Object * -ExcludeProperty queueId
}
}
Run Code Online (Sandbox Code Playgroud)