Visual studio 2010 如何删除VS2010“;“检测到文件修改”;对话
每次我在git中切换分支时,VisualStudio都会问我是要重新加载项目还是忽略更改,这让我很生气Visual studio 2010 如何删除VS2010“;“检测到文件修改”;对话,visual-studio-2010,Visual Studio 2010,每次我在git中切换分支时,VisualStudio都会问我是要重新加载项目还是忽略更改,这让我很生气 如何自动重新加载解决方案?我完全同意。我不敢相信他们没有在VS 2010中修复它 但仅供参考: 这个关了 这一个似乎仍处于活动状态,并且有一个解决方法(这对我来说不值得花时间): 我想这说明了微软对这件事的重视程度: 这个问题与5年前相比仍然悬而未决:283618我发现这也很恼人,所以我自己也在寻找解决方案。我写了一个控制台应用程序,代码如下: using System; using Syst
如何自动重新加载解决方案?我完全同意。我不敢相信他们没有在VS 2010中修复它 但仅供参考: 这个关了 这一个似乎仍处于活动状态,并且有一个解决方法(这对我来说不值得花时间): 我想这说明了微软对这件事的重视程度:
这个问题与5年前相比仍然悬而未决:283618我发现这也很恼人,所以我自己也在寻找解决方案。我写了一个控制台应用程序,代码如下:
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);
}
}
如果启动此程序,它将等待这些弹出窗口,并单击“自动重新加载”。Try,它允许您重新加载所有项目: