Visual Studio 2010 - C++ 项目 - 删除 *.sdf 文件 [英] Visual Studio 2010 - C++ project - remove *.sdf file

查看:50
本文介绍了Visual Studio 2010 - C++ 项目 - 删除 *.sdf 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我是否可以安全地删除存储 Visual Studios Intellisense 信息的 sdf 文件 - 下次我打开解决方案时是否会重建它?

I would like to know if I can safely delete the sdf file that stores information for Visual Studios Intellisense - is it going to be rebuilt the next time that I open the solution?

这样做我会失去什么吗?是否有可能以这种方式打破解决方案?

Do I lose anything by doing so? Is it possible to break the solution this way?

这样做的动机是通过存储多个小项目 - 每个 sdf 文件的大小或多或少为 20Mb,这会增加大量的磁盘空间.

The motivation to do so is that by having multiple small projects stored - each and every sdf file is more or less 20Mb in size which adds up to a noticeable amount of disk space.

推荐答案

您可以安全地删除.sdf文件ipch文件夹 但您也可以首先阻止 VS 将这些文件放入项目文件夹中.(如果您的源代码位于 SVN 或其他同步文件夹中,或者如果您将项目存储在 U 盘或 SSD 等小卷上并且不想将那些大文件存储在同一文件夹中,则很有用)

You can safely delete the .sdf file and ipch folder but you can also stop VS from putting those files in the project folder in the first place. (Useful if you have your source in an SVN or other synchronised folder, or if you store your project on a small volume like a USB stick or SSD and you don't want those large files stored in the same folder)

转到<代码>工具->选项 ->文本编辑器 ->C/C++ ->高级

Fallback Location"中,将Always Use Fallback Location"设置为 TrueDo Not Warn If Fallback位置使用"到True.

In the "Fallback Location", set "Always Use Fallback Location" to True and "Do Not Warn If Fallback Location Used" to True.

后备位置"中,您可以放置​​一个类似 C:Temp 的路径,或者如果您将其留空,那么 VS 将使用您的 AppData 文件夹.

In "Fallback Location" you can either put a path like C:Temp or if you leave it blank then VS will use the temporary directory in your AppData folder.

这篇关于Visual Studio 2010 - C++ 项目 - 删除 *.sdf 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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