清理压缩电子邮件附件的解决方案

发布于 2024-12-24 21:52:45 字数 113 浏览 1 评论 0原文

如何“清理”Visual Studio 2010 C++ 解决方案,

使其足够小,可以压缩并作为电子邮件附件发送?

还有其他方法可以通过电子邮件发送大型 MSVS C++ 文件吗?

How do I 'clean' a Visual Studio 2010 C++ solution,

so that it is small enough to be zipped up and sent as an email attachment?

Is there any other way to send large MSVS C++ files over email?

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

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

发布评论

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

评论(3

秉烛思 2024-12-31 21:52:45

要缩小大小:

  • 访问每个项目的文件夹并删除其 binobjDebugRelease 文件夹中的所有内容(或删除文件夹本身)。

注意:如果开发人员手动将某些文件放入 bin 文件夹中以使程序正常运行,请确保不要将其删除。 如果不是您自己的项目:通常有exepdbilk类型的文件libdllexpvshost.exemanifest,可以安全删除。但是,如果您看到其他内容,例如 mdfmdb 数据库、图像、文本文件等,则不应删除它们。

  • 在解决方案或项目的根目录下,可能有一个大的 .ncb 文件,它是 Intellisense 的数据库,可以安全删除,因为下次打开项目时会重新收集该文件。带有 .suo 的用户选项文件包含环境和编辑器的布局和设置。这也可以删除,但通常很小。

  • 最后,请确保使用好的存档器。 Zip 很常见,但不如 gzip、bzip2 或 7-zip 等格式好。

通过电子邮件发送项目是将你的作业发送给教授的好方法,但正如其他人指出的,如果这是一个团队工作,你必须考虑在团队中使用一些(分布式)版本控制系统。

For making size smaller:

  • Visit each project's folder and delete everything from their bin, obj, Debug and Release folders (or delete the folders themselves).

Notice: If some files have been manually put in the bin folder by the developer for the program to work make sure you don't delete it. If it's not your own project: Normally there are files of type exe, pdb, ilk, lib, dll, exp, vshost.exe, manifest, that can be safely deleted. But if you see other things, such as mdf or mdb databases, images, text files, etc they shouldn't be deleted.

  • At the root of the solution or project there might be a big .ncb file which is Intellisense's database and can be safely deleted since it is recollected next time you open the project. A user options file with .suo is there that contains the environment and editor's layout and settings. This can be deleted too but it's usually small.

  • Finally, make sure you use a good archiver. Zip is very common but is not as good as formats like gzip, bzip2 or 7-zip.

Sending projects via e-mail is nice to send your homework to the professor, but as others noted if this is a team work, you must consider using some (distributed) version control system among your team.

夏至、离别 2024-12-31 21:52:45

您应该考虑通过某种源代码管理系统 (SCM)(如 Subversion、Git、Mercurial 或其他系统)共享它们,而不是通过电子邮件发送项目。

Instead of sending projects by e-mail, you should consider sharing them through some kind of source code management system (SCM) like Subversion, Git, Mercurial or whatever else.

孤凫 2024-12-31 21:52:45

当您运行构建时 -> VS 2010 中的清洁解决方案,它删除了几乎所有临时文件,如 清理 C++ 项目一文。

When you run a Build -> Clean Solution in VS 2010, it deletes almost all of the temporary files as in this Clean up C++ projects article.

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