Visual Studio 2010 和 .bsc 文件

发布于 2024-12-17 14:43:37 字数 485 浏览 3 评论 0原文

我正在 Visual C++ 2010 中使用开源 Mozilla 项目。该项目需要基于 UNIX 的构建工具,因此我无法直接为其创建 Visual Studio 项目。我必须使用与项目捆绑在一起的命令行构建文件(makefile、配置脚本等)来使用 cl.exe 构建项目。 (这是因为一些 .h 文件是由 make 实用程序生成的。)

问题是,在不创建 Visual Studio 项目的情况下,如何使用“F12 转到定义”功能浏览项目源文件在 Visual Studio 中可用吗?我知道我可以使用 /FR 编译器选项生成 .bsc 文件。但是,我还发现 Visual Studio 2010 中的对象浏览器似乎不支持 .bsc 文件。当我直接使用 Visual Studio 2010 打开 .bsc 文件时,它显示“类未注册,正在寻找具有 CLSID 的对象:{D9B3211D-E57F-4426-AAEF-30A806ADD397}。

我们如何在 Visual Studio 2010 下使用 .bsc 文件?

I'm using an open source Mozilla project in Visual C++ 2010. The project requires UNIX based build tools and therefore I cannot create a Visual Studio project for it directly. I must use the command line build files (makefile, configure script, etc) bundled with the project to build the project using cl.exe. (This is due to the fact that some .h files are generated by the make utilities.)

The problem is, without creating a Visual Studio project, how do I browse through the project source files using say the "F12 Go To Definition" feature available in Visual Studio? I know I can generate a .bsc file using the /FR compiler option. But, I also found that the Object Browser in Visual Studio 2010 doesn't seem to support a .bsc file. When I open a .bsc file directly using Visual Studio 2010, it says "Class not registered, Looking for object with CLSID: {D9B3211D-E57F-4426-AAEF-30A806ADD397}.

How do we use a .bsc file under Visual Studio 2010?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

全部不再 2024-12-24 14:43:37

不幸的是,Visual Studio 2010+ 不再支持 BSC

更多详细信息:http://connect.microsoft.com/VisualStudio/feedback/details/514470/bsc-files-cannot-be-used

Unfortunately BSC is not supported anymore for Visual Studio 2010+

More details: http://connect.microsoft.com/VisualStudio/feedback/details/514470/bsc-files-cannot-be-used

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文