VisualStudio 项目中的 * . VC.db 文件是什么?

在我有的一些 Visual Studio 2015项目中,项目文件夹中有一个 *.VC.db文件,以项目命名: 如果项目名称为 FooBar,则该文件为 FooBar.VC.db

这个文件看起来像某种类型的数据库,但是我在项目中根本没有使用任何数据库。

我最好的猜测是,它的运行方式与 IntelliSense 使用的 HelloWorld.sdf数据库类似。

是只在“新”里是一样的,还是它在做一些重要的事情,我不应该删除它?

47389 次浏览

This happens after you installed VS2015 Update 2. The projname.vc.db file is the new IntelliSense database, it replaces the old projname.sdf database. Not otherwise by deleting that .sdf file. You may also see a hidden projname.vc.vc.opendb file, a lock file to indicate that the dbase is in use. Crystal ball says that somebody is bound to have to delete this one by hand sooner or later.

This was already available before but was experimental. Now permanent. Promises are for a rough x2 speedup of IntelliSense. Biggest change appears to be switching to another dbase engine, now using SQLite instead of SQL Compact. Powerful open source confidence vote there :)

Don't delete the file just yet or next time you open the project IS is going to be catatonic for a while. Well, not as long as before :) You'd consider cleanup, if at all, when you're done with the project. Go ahead and delete the .sdf file, it will no longer be used.