﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-wizardjk-随笔分类-开发工具</title><link>http://www.cppblog.com/wizardjk/category/18279.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 02 Dec 2011 13:06:15 GMT</lastBuildDate><pubDate>Fri, 02 Dec 2011 13:06:15 GMT</pubDate><ttl>60</ttl><item><title>vs2010中的ipch文件夹和sdf文件</title><link>http://www.cppblog.com/wizardjk/archive/2011/07/06/150278.html</link><dc:creator>托雷宽</dc:creator><author>托雷宽</author><pubDate>Wed, 06 Jul 2011 02:01:00 GMT</pubDate><guid>http://www.cppblog.com/wizardjk/archive/2011/07/06/150278.html</guid><wfw:comment>http://www.cppblog.com/wizardjk/comments/150278.html</wfw:comment><comments>http://www.cppblog.com/wizardjk/archive/2011/07/06/150278.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wizardjk/comments/commentRss/150278.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wizardjk/services/trackbacks/150278.html</trackback:ping><description><![CDATA[<div><div id="app-share-content">  	                    <p>vs2010打开某个工程 ，转换成功之后，在工程目录看见一个sdf文件和一个ipch文件夹，都超大（起码几十M），我一个四百多k 的工程，结果用vs打开过后变成了两百多兆。</p> <p>这个详细点的解释</p> <p>大家也许发现了，visual studio 2010  中新建一个项目会同时建立一个ipch目录与sdf文件，即使你删掉它，再次打开工程时还是会重新建立。动辄30、50M的容量让我们心里很不爽。其实这 是2010的一个新功能，与智能提示，错误提示，代码恢复、团队本地仓库等等息息相关的东西。如果大家觉得很不爽可以关掉它。Tools &#8212;&#8212;  Options &#8212;&#8212; Text Editor &#8212;&#8212; C/C++ &#8212;&#8212; Advanced &#8212;&#8212;Disable Database  设置为True，默认为false。这样，你关闭visual后删掉工程目录下的ipch与sdf就不会再产生了</p> <p>但是这样的办法会产生另外的一些问题，可能会导致其他的一些功能不能使用。</p> <p>另外一种解决方法是：</p> <p>Tools-&gt;Options-&gt;Text  Editor-&gt;C/C++-&gt;Advanced，在 Fallback Location 的属性组中，将"Always Use  Fallback Location"设置为 true，将"Do Not Warn If Fallback Location Used" 设置为  true ，然后删除解决方案目录下的 sdf 文件和 ipch 目录，再次打开解决方案，发现这些烦人的东西已经不见了。</p> <p>那么那些文件放置到那里了呢？看 "Fallback Location" 属性说明：这是存储浏览信息数据库和 IntelliSense 文件的第二个位置，如果不指定则放置到临时目录中；到临时目录一看，里面有一个 VC++ 的目录，都在那个目录里面呢。</p> <p>可以在 "Fallback Location" 属性中，设置一个固定的路径来存储这些文件，比如D:\VS2010Temp，这样也比较好管理这些庞大的臃肿的文件，可以定期清理掉它们，释放出硬盘空间！</p>             			</div>             <div id="appShareUrl" style="clear:both;">                                                  来自: <a href="http://hi.baidu.com/laoyang1018/blog/item/b62fc75ccdbc594dfbf2c0fc.html" target="_blank">http://hi.baidu.com/laoyang1018/blog/item/b62fc75ccdbc594dfbf2c0fc.html</a>                             </div></div><img src ="http://www.cppblog.com/wizardjk/aggbug/150278.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wizardjk/" target="_blank">托雷宽</a> 2011-07-06 10:01 <a href="http://www.cppblog.com/wizardjk/archive/2011/07/06/150278.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>