How to remove VS2010 "File change detected"?

Every time I switch a branch to git, visual studio pisses disables these pop-ups , asking me if I want to reload the project or ignore the changes.

How to automatically reload the solution?

+6
visual-studio-2010
source share
3 answers

I totally agree. I can not believe that they did not fix it in VS 2010.

But only FYI:

This one is closed by Microsoft Connect .

This one seems to be still active and has a workaround (which is not worth the time for me): Microsoft Active

I guess this shows how seriously Microsoft uses this: The problem is still impossible since 5 years ago: 283618

+1
source share

Try VSCommands 2010 Lite , it allows you to restart all projects:

enter image description here

+6
source share

I found this also very annoying, so I searched for a solution myself. And came up with a small console application that I wrote, with the following code:

using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Windows.Forms; internal class Program { // For Windows Mobile, replace user32.dll with coredll.dll [DllImport("user32.dll", SetLastError = true)] static extern IntPtr FindWindow(string lpClassName, string lpWindowName); // Find window by Caption only. Note you must pass IntPtr.Zero as the first parameter. [DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)] static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName); [DllImport("user32.dll")] // static extern bool ShowWindow(IntPtr hWnd, ShowWindowCommands nCmdShow); static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); internal static void Main(string[] args) { do { Console.Title = "Waiting..."; Console.WriteLine("Waiting..."); IntPtr hwnd = FindWindowByCaption(IntPtr.Zero, "File Modification Detected"); while ((int)hwnd == 0) { Thread.Sleep(500); hwnd = FindWindowByCaption(IntPtr.Zero, "File Modification Detected"); } Console.Title = "Found one, kill it..."; Console.WriteLine("Found one, kill it..."); // ShowNormal = 1 // Show = 5 ShowWindow(hwnd, 5); SendKeys.SendWait("{ENTER}"); Thread.Sleep(500); hwnd = IntPtr.Zero; } while (true); } } 

If you run this program, it waits for these pop-ups and will automatically reboot.

+3
source share

All Articles