在 Visual Studio 2008 中清理项目以保护您的隐私
Visual Studio 中是否有任何标准方法可以保护您的隐私?我发现非常令人不安的是,每次我打开项目时,它都会创建各种二进制文件,其中嵌入了我的用户名和系统路径。我正在尝试为潜在雇主制作一些示例代码的组合,每次进行小修改时,我都必须重新检查每个文件,因为担心另一个隐藏引用我的系统目录结构和私人用户名的文件已经溜走。 (可能会导致雇主能够更轻松地找到我的 Facebook 等,查看我过去在网上提出的愚蠢问题。)
令人恐惧的是,即使在调试模式下编译的 .exe 也引用了如此之多的内容我的个人数据。是否有工具或标准方法来处理所有这些?当然,公司在向公众发布项目之前必须进行清理。
Is there any standard way to protect your privacy in Visual Studio? I find it extremely disconcerting that it creates all sorts of binary files that have my user name and system paths embedded in them every single time I open a project. I'm trying to make a portfolio with some sample code for potential employers, and every time I make a small modification I have to reinspect every file for fear that another with hidden references to my system directory structure and private username has slipped through. (Could lead to an employer being able to more easily locate my facebook, etc., see dumb questions I've asked online in the past.)
It is frightening that even the .exe if complied in Debug mode has references to so much of my personal data. Is there a tool or standard way to handle all of this? Surely companies have to sanitize before releasing projects to the public.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
独立于你的问题 - 一个非常强烈的建议是使用版本控制系统,例如 Subversion。如果这样做,您可以控制签入哪些文件和不签入哪些文件,并且二进制文件通常不会进入源代码管理。我也不检查 .vcproj.user 。
因此,如果您想将项目传递给其他人,您可以授予他对存储库的访问权限,或者您可以执行“svn 导出”,这将为您提供一个新的干净目录中的所有版本化文件。这就是我在你的情况下选择的方式。
Independently from your question - a very strong suggestion is to use a version control system like e.g. Subversion. And if you do, you control which files are checked in and which aren't, and binaries usually don't go to source control. I don't check .vcproj.user in either.
So if you want to pass a project to someone else, you can either give him access to the repository or you can do a "svn export" which gives you all versioned files in a new and clean directory. This is the way I would choose in your case.