在 Visual Studio 中禁用 *.sbr

Disable *.sbr in Visual Studio

我想通过解决方案设置禁用在 Visual Studio 中制作 *.sbr 文件,因为我的项目有很多警告,例如:

BSCMAKE : warning BK4503: minor error in .SBR file 'Foo.sbr' ignored

我使用它有哪些限制和缺点?

SBR 文件保存浏览信息 各个源文件,然后 bscmake 编译成 BSC 文件。 Visual Studio 2010 年左右之前的版本曾经能够在对象浏览器中加载 BSC 文件,例如参见 [​​=12=]。现在,我相信 BSC 文件仍然只被一些第 3 方实用程序和扩展使用。

要控制 SBR 生成,请按照 /FR, /Fr (Create .Sbr File):

中的步骤操作

To set this compiler option in the Visual Studio development environment

  • Open the project's Property Pages dialog box.
  • Click the C/C++ folder.
  • Click the Browse Information property page.
  • Modify the Browse Information File or Enable Browse Information property.

dxiv 的观点是正确的。但是,可能还需要检查浏览信息 -> 常规设置。

在 VS 解决方案浏览中,右键单击该项目。在属性页面[我在VS2013]: 1.select'Configuration Properties'-'C/C++'-'Browse Information'; 2. 在右侧对话框中,select 'NO' in 'Enable Browse Information' ComboBox; 3. select 'OK'