The estimable Ed Blankenship posted a must read article for everyone using TFS 2010: Source Server and Symbol Server Support in TFS 2010. Bookmark that article because it’s the one stop shop for all the best practices for symbol server, source indexing, and everything related to them for VS and TFS 2010.
Once you get all the symbol server and source indexing hooked up as Ed describes, your life will be great except for one small problem. See this dialog below?
This is the Security Warning dialog that Visual Studio pops up every time it needs to run the version control command line tool the first time you need to access a file. The warning is reasonable but look closely at that dialog. Is there anything that lets you check something that says “don’t ask me again?” Nope! So after seeing this dialog over and over and over, you’ll be a little frustrated. Actually, you’ll be a lot frustrated. Probably frustrated enough to fly to Redmond and scream on Microsoft’s campus: “Make it stop!” Interestingly, WinDBG does have the check box on its security dialog so you can turn it off.
As my job is to save your frustrations, it’s actually very easy to turn off this dialog. You’ll have to create a text file to tell SYMSRV.DLL, which is the DLL doing your symbol server loading, that you trust the command. In <Visual Studio Install DirectoryCommon7IDE, create a text file called SRCSRV.INI and put the following into it:
<p style="line-height:13pt;background-color:#c6d9f1;margin:0in 0in 0pt" class="Code"><font face="Courier New"><font style="font-size:11pt" color="#000000">[trusted commands]</font></font></p> <p style="line-height:13pt;background-color:#c6d9f1;margin:0in 0in 0pt" class="Code"><font face="Courier New"><font style="font-size:11pt" color="#000000">tf.exe=<Visual Studio Install Directory>Common7IDEtf.exe</font></font></p> <p>That’s it! Now Visual Studio will trust TF.EXE and never show the Security Warning again.