当使用Team Foundation Server(TFS)运行性能和诊断会话时,Visual Studio 2013 Ultimate中出现以下错误。以下是重现的步骤:错误VSP1737:由于共享冲突导致文件无法打开
- 从Team Foundation Server获取最新信息。
- 创建“CPU采样”方法的新性能会话。
- 启动新创建的性能会话。
- 退出会话后关闭Internet Explorer或在“停止分析”上单击 。
然后我会在输出窗口中得到错误。
Preparing web server for profiling.
Profiling started.
Launching web server with profiling.
Launching profilable project.
Profiling process ID 9460 (iisexpress).
Profiling process ID 7008 (iexplore).
Process ID 7008 has exited.
Process ID 9460 has exited.
Error VSP1737: File could not be opened due to sharing violation: C:\Users\%hiddenuserprofile%\Documents\Projects\%HiddenPathWithFilename%.vsp
PRF0025: No data was collected.
Profiling complete.
为了摆脱这个错误,我将不得不清除TFS设置的解决方案文件夹的只读属性。如果我清除只读属性,则TFS无法检测到与TFS服务器在本地工作区中的更改。然后,我将不得不手动检查TFS中的比较选项的更改,然后合并。
为什么会出现此错误?我是否正确地做这件事?
这个错误只发生在这个项目中吗?或者它也发生在你的其他项目中?这可能是由特殊文件源控件绑定引起的。你可以尝试解除/绑定文件详细方式请参阅http://stackoverflow.com/questions/358951/how-can-i-completely-remove-tfs-bindings –