Manually Adding a .Bsc File to a Project

When a .bsc file is built for a project, it is automatically available to support browsing for symbol references. You may want to make symbol references for another project available in your project. For example, if you include a header file from another project, you may want to browse to symbol references in the project in which the .h file was originally built.

There are three ways to make the symbol references in a .bsc file available in your project. Regardless of how you add a .bsc file, you can add more than one.

Note

For .bsc files to appear in Solution Explorer, you must select Show miscellaneous files in Solution Explorer in the Documents property page. On the Tools menu, click Options to display this property page.

To open the .bsc file

  • On the File menu, click Open and open the .bsc file.

    The .bsc file will be available to all projects in the solution until you either reload the solution or delete the .bsc file from Solution Explorer or the Object Browser.

To attach the .bsc file to your project

  1. In Solution Explorer, right-click the project node and click Add Existing Item on the shortcut menu.

  2. Browse to the .bsc file and add it to your project.

    The .bsc file will only be available in the project to which it is added. You can save the project so that the .bsc file will be available the next time that you open the project. You can delete the .bsc file from Solution Explorer

To add the .bsc file to the Object Browser

  • In the Object Browser, click the Customize button and browse to the desired .bsc file.

    When you add .bsc files to the Object Browser with the Customize button, the files are available to all projects in any solution that you open. This setting will persist across Visual Studio sessions.

The .bsc file that is referenced in each method will then appear in the Object Browser.

See Also

Other Resources

Using .Bsc Files to Enable Browsing To References of C++ Symbols