2012-06-12 17 views
2

我剛剛接管了一個項目的維護。這是一個VS2010解決方案,其中包括一個C++項目。整個解決方案作爲源控制系統保存在TFS 2010中。VS2010解決方案在TFS 2010源代碼控制下,一個C++項目在打開時發出警告

現在每當我打開解決方案VS2010給我這個惱人的對話框;

Visual C++ found a suitable location to store its browsing database and IntelliSense files 
for the solution 
"C:\***\****x.sln." 

Visual C++ examined the folder "C:\***\A***LL." 
This folder is not suitable because of the following: 
The browsing database in this directory has the read-only attribute and cannot be written to. 
The directory is on a local drive. 

Because a 'Fallback Location' was not specified in the C++ Advanced Options, Visual C++ is 
attempting to use your temporary directory. 

Visual C++ examined the folder "C:\Users\***\AppData\Local\Temp\VC++\c****-57e7d5e2." This folder is suitable because of the following: 
The directory is on a local drive. 

The 'Fallback Location' is configurable under C++ Advanced Options. 

Press OK to use this location. 

它看起來像這樣由C++溶液* .sdf文件源控制,溶液被打開時(儘管源控制之下),這意味着下是引起它的只讀因此的只讀位對話框。

所以我的問題是什麼TFS源代碼管理下的C++項目的最佳做法?

  1. 我應該從源代碼控制中刪除.sdf文件,讓VS每次都重新創建一次somone獲得解決方案嗎?
  2. 我應該剔efectivly繞過.SDF資源庫中的使用後備選項

有沒有更好的辦法,讓VS2010知道SDF文件是源代碼控制之下,因此它可以自動檢查什麼時候打開項目?

回答

2

我只能推薦從源代碼控制中排除sdf。你對版本化並沒有什麼好處,因爲它每次都會產生變化,這幾乎每次都會產生。作爲一個口頭禪,人們可以說,除非絕對有必要共享二進制文件(例如需要的圖標和圖像),否則不應該對二進制文件進行版本控制。

相關問題