Stop Refresh inside TFS Build window in Visual Stu

2020-02-26 08:02发布

问题:

Is there a way to stop the constant refreshing inside Visual Studio when looking at a TFS Build? Using VS 2010 SP1 and TFS 2010 SP1. When watching a build in the Build window, the screen refreshes every 10 seconds or so. Not a big deal except during every refresh the window resets to somewhere in the middle of the page if looking at the bottom of the build window (and it scrolls). So annoying. I'd rather manually refresh to watch the build run instead of scrolling down to the bottom, then once getting to the bottom, scrolling again because the window reset. Is there a way to turn off this automatic refresh?

回答1:

There is a way to make this stop. Add the following registry key

HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\10.0\TeamFoundation\Build\UISettings with value name "ReportPollingInterval"

with a DWORD value (in ms) for the refresh interval. By default it refreshes every 10 seconds.

You will need to change "10.0" to your Visual Studio version (e.g. Visual Studio 2013 is "12.0", and Visual Studio 2015 is "14.0")

E.g. run this on your command line:

reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0\TeamFoundation\Build\UISettings /v ReportPollingInterval /t REG_DWORD /d 1000000000


回答2:

ReportPollingInterval set to 0 means off.