Visual Studio:自动重新加载解决方案

Visual Studio:自动重新加载解决方案

问题描述:

在 Visual Studio 中使用 Unity 时,我的解决方案经常从外部源更改.当 Visual Studio 意识到我的解决方案已更改时,它会询问我是否要重新加载我的解决方案.就我而言,我总是想重新加载它.

When working with Unity in Visual Studio, my solution gets often changed from an external source. When Visual Studio realizes that my solution has been changed it asks if I want to reload my solution or not. In my case, I always want to reload it.

有没有办法跳过显示各种选项的对话框并始终让它重新加载解决方案?

Is there a way to skip the dialog box that presents various options and simply always have it reload the solution?

我使用的是 Visual Studio 2015/2017

I'm using Visual Studio 2015/2017

这就是您要找的:

工具 > 选项 > 环境 > 文档 > 检测文件何时在环境外更改 > 重新加载修改后的文件.....

Tools > Options > Environment > Documents > Detect when a file is changed outside the environment > Reload Modified files.....

对于 Visual Studio 2017:

For Visual Studio 2017 :