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

查看:318
本文介绍了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或其他同步文件夹中,或者将项目存储在USB记忆棒或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)

转到Tools -> Options -> Text Editor -> C/C++ -> Advanced

在"后备位置"中,将"始终使用后备位置"设置为True,并设置"如果使用后备位置则不发出警告" >"到True.

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

在" Fallback位置"中,可以放置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天全站免登陆