當使用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 –