尝试在Visual Studio 2015社区版中创建类时出错 [英] Error when trying to create a class in visual studio 2015 Community Edition

查看:141
本文介绍了尝试在Visual Studio 2015社区版中创建类时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误描述:"CodeModel操作失败.可能无法访问标签数据库."

Error description: "CodeModel operation failed. Possibly cannot access tag database."

据我所知,没有清楚的迹象表明导致此问题的原因.我一直在寻找解决方案,他们建议删除某些文件,例如sdf和ipch文件夹,但我似乎找不到它们.任何帮助都将不胜感激.

There was no clear indication, as far as I know, as to what caused this problem. I have looked for solutions and they suggested to delete certain files like the sdf and ipch folder but I can't seem to find them. Any help would certainly be appreciated.

推荐答案

LuiAvwehoff,

Hi LuiAvwehoff,

谢谢您的发帖.

要解决此问题,您想找到sdf和ipch文件夹吗?

To solve this issue, you would like to find the sdf and ipch folder right?

实际上,Sdf文件和ipch文件夹用于VS中的智能功能.通常,如果IntelliSense损坏,我们可以删除IntelliSense数据库(.sdf文件)以重建数据库.

Actually, Sdf file and ipch folder are used for intellisence feature in VS. Usually we can delete the IntelliSense database (.sdf file) to rebuild the database if the IntelliSense is corrupted.

请参阅有关Intellisence数据库的更多详细信息:

Please refer to more detail information about Intellisence database at: 

https://blogs.msdn.microsoft. com/vcblog/2010/03/09/intellisensebrowsing-options-in-vc-2010/

IntelliSense支持文件(即iPCH)位置与调试文件位于同一目录:

The IntelliSense support files (i.e. iPCH) location is same directory with Debug file:

默认情况下,.sdf文件(一次又一次更新)存储在项目位置旁边.

By default the .sdf files (which get updated again and again) are stored next to your project location.

关于如何删除* .sdf文件,请转到工具->选项->文字编辑器-> C/C ++->进阶

About how to remove *.sdf file, please go to Tools -> Options -> Text Editor -> C/C++ -> Advanced,

将以下后备位置"值设置为真",您还可以输入后备位置"的网址:

Set the following Fallback Location value to True, and you could also type a URL of Fallback Location:

参考:

http://stackoverflow.com/questions/7706984/visual -studio-2010-c-project-remove-sdf-文件

删除两个文件后,重新打开解决方案并重新构建它.

After deleting two files, reopen the solution and build it again.

最好的问候,


这篇关于尝试在Visual Studio 2015社区版中创建类时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆