2011年7月20日 星期三

(Mac) 使用 Eclipse + TFS plugin 來做版本控制

使用 Team Foundation Server 做版本控制的朋友,
如果在非 Windows 的環境下開發,
那麼要如何使用 TFS 版本控制的功能呢?

以 Mac OS 為例,我知道的有下面幾種方式:
1. Windows 以 Visual Studio 做版本控制,然後以 Shared Folder 的方式分享給 Mac OS 存取
2. SvnBridge 透過 SVN 做中介
3. Eclipse + TFS plugin 

目前我使用 3.,使用上覺得還蠻方便的,
對於在非 Windows 環境下開發,
且公司又是以 TFS 做版本控管的朋友應該是蠻方便的方式,
而且操作介面跟使用 Visual Studio 的選單完全一樣。

步驟:
1) 下載 eclipse-SDK-3.7-macosx-cocoa-x86_64.tar.gz
2) 下載 TFSEclipsePlugin-UpdateSiteArchive-10.1.0.zip
3) 解壓縮 Eclipse,開啟 Eclipse 主程式
4) Help -> Install New Software -> Add -> Archive 
然後選擇  TFSEclipsePlugin-UpdateSiteArchive-10.1.0.zip
在 Name 欄位任意輸入一個名稱:TFS Plugin
5) 將 Visual Studio  Team Explorer Everywhere 2010 打勾
6) 下面我有打勾的項目有
Show only the latest versions of available software
Group items by category
Show only software applicable to target environment
Contact all update sites during install to find required software
7) 按 Next 會開始安裝,接著就照步驟完成它
8) 安裝成功後會提示 restart Eclipse
9) Window -> Show View -> Other -> 選擇 Team Foundation Server -> Team Explorer
10) 按 Team Explorer 上面的+圖示,
I have read and accept the terms in the License Agreement -> Next -> 輸入 Product Key -> Next
11) 輸入 Server 位址, e.g. http://tfs.example.com:8080/tfs
12) 輸入 Username, Domain, Password
13) 然後 Next 選擇 Team Project

以上大功告成!Enjoy!






0 意見: