Visual Studio 2010 - C++项目 - 删除 *.sdf 文件

发布于 2024-12-08 17:08:43 字数 183 浏览 1 评论 0原文

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

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

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

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?

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

请叫√我孤独 2024-12-15 17:08:43

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

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

在“后备位置”中,将“始终使用后备位置”设置为True 和“不警告”如果使用后备位置”为True

在“后备位置”中,您可以输入类似 C:\Temp 的路径,或者如果将其留空,则 VS 将使用中的临时目录>AppData 文件夹

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)

Go to Tools -> Options -> Text Editor -> C/C++ -> Advanced

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

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.

陈独秀 2024-12-15 17:08:43

您可以安全地删除该文件。 Visual Studio 将在下次打开解决方案时重建该文件。

You can safely delete the file. Visual Studio will rebuild the file the next time the solution is opened.

芯好空 2024-12-15 17:08:43

简短的回答是,您可以安全地删除.sdf文件。

但是,请注意,实际上您可以通过将以下选项设置为 True 来阻止 VS 创建 .sdf 文件:

Tools ->选项->文本编辑器 -> C/C++->高级-> 禁用数据库

The short answer is yes, you can safely delete the .sdf file.

However, note that you can actually prevent VS from creating .sdf files in the first place by setting the following option to True:

Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Disable Database

木有鱼丸 2024-12-15 17:08:43

为了完整起见,您可以安全地删除:
- *.sdf
- 调试文件夹(通常有两个级别)
- ipch 文件夹(c#)

for sake of completeness, you can safely delete:
- *.sdf
- Debug folders (usually at two levels)
- ipch folder (c#)

亢潮 2024-12-15 17:08:43

您可以删除这个本地文件,不用担心。
SDF 将来自您的“xxxDBDataSet.xsd”文件。
如果更改它,SDF 文件也会是新的。

You can delete this local file, don't worry.
The SDFwill be from your "xxxDBDataSet.xsd" file.
if you change it, the SDF file also be new.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文