VisualStudio:如何将 obj 文件夹保存在其他地方 [英] VisualStudio: How to save the obj folder somewhere else

查看:45
本文介绍了VisualStudio:如何将 obj 文件夹保存在其他地方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道在构建解决方案时如何告诉 VS(2008) 在哪里保存 obj 文件夹?我们将 bin 文件夹保存到另一个路径,以保持源文件夹较小(即可通过电子邮件发送),但找不到任何方法告诉它对 obj 执行相同操作...

Does anyone know how to tell VS(2008) where to save the obj folder when building the solution? We have it save the bin folder to another path in order to keep the source file folders small (ie. emailable), but can't find any way to tell it to do the same with obj...

推荐答案

使用项目文件中的 BaseIntermediateOutputPath 属性(.csproj, .vbprojcode> 等),如 http://msdn.microsoft.com 所述/en-us/library/bb629394.aspx.您必须使用文本编辑器手动编辑 XML 文档,然后在 Visual Studio 中重新加载它.它可能仍会创建 obj 文件夹(这是一个已知错误),但会将其留空并将实际的 obj 文件放在您指定的文件夹中.

Use the BaseIntermediateOutputPath property in the project file (.csproj, .vbproj, etc.), as explained at http://msdn.microsoft.com/en-us/library/bb629394.aspx. You'll have to manually edit the XML document using a text editor, then reload it in Visual Studio. It may still create the obj folder (that's a known bug), but will leave it empty and put the actual obj files in your specified folder.

这篇关于VisualStudio:如何将 obj 文件夹保存在其他地方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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