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

时间:2016-04-04 15:55:06

标签: visual-studio visual-studio-2015

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

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

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

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

1 个答案:

答案 0 :(得分:102)

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.