Visual Studio项目上的ipch文件 [英] ipch files on a Visual Studio project

查看:261
本文介绍了Visual Studio项目上的ipch文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中找到一个ipch文件夹,其文件具有ipch扩展名。另外,它们非常庞大。

I am finding an ipch folder in my project whose files are having an ipch extension. Plus, they are quite voluminous.

我可以摆脱它们吗?

推荐答案

这是IntelliSense解析器使用的预编译头文件。与构建项目时编译器生成的预编译头文件不同,后者是构建输出目录中的.pch文件。否则,它起着完全相同的作用,它大大提高了解析器的速度。它可以使用这种帮助,而EDG前端从未如此快速。

That is the precompiled headers file that is used by the IntelliSense parser. Distinct from the precompiled header file that the compiler generates when you build your project, that's a .pch file in your build output directory. It otherwise plays the exact same role, it greatly increases the speed of the parser. It can use that kind of help, the EDG front-end has never been particularly fast.

删除它们很好,仅当您加载了项目时才使用它们IDE。如果重新加载项目,则IntelliSense将会出现一段时间的故障,重新生成.ipch文件,重新解析项目中的文件,并在项目目录中重新创建.sdf文件。在大型项目上,可能要花几分钟的时间。当然,.ipch文件越大,所需的时间也就越长。通常,您只是在完成项目后才考虑这样做。

Deleting them is fine, they are only used when you have the project loaded in the IDE. If you reload the project then IntelliSense is going to be catatonic for a while, rebuilding the .ipch file, re-parsing the files in the project and recreating the .sdf file in the project directory. On large projects that can easily take a handful of minutes. Of course, the bigger the .ipch file, the longer that will take. It is something you'd normally only contemplate after you finished a project.

这篇关于Visual Studio项目上的ipch文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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