.NET 程序集中的(程序员的)个人识别信息

发布于 2024-08-17 16:19:06 字数 372 浏览 5 评论 0原文

在过去查看我的一些应用程序时,我注意到编译到程序集中的信息包括我的项目所在位置、我在 Windows 中的用户名(恰好是我的全名,而不是我的在线句柄),老实说,我不知道还有什么。

现在我知道其主要原因是在调试下编译时,因为这是源文件或 pdb 文件的文件位置(不记得是哪个)。

问题是,还有哪些其他“个人可识别”信息可能会出现在编译的程序集中,以及可以采取哪些措施来防止这种信息出现在程序集中?

我假设如果我只是将项目设置为发布模式禁用已编译程序集中的调试符号,这将实现我的目标,但是我仍然很好奇是否还缺少其他任何内容。

我通常不介意人们知道我做了什么,但让我感到有点恼火的是,我的全名在我不知情的情况下出现在我的分布式程序集中。

When going through some of my applications in the past, I have noticed that compiled into the assembly is information such as where my project is, my username (which happened to be my full name, not my online handle) in Windows, and honestly I'm not sure what else.

Now I know the primary reason of this is when compiled under Debug, as this was file locations to the source files or pdb files (can't recall which).

The question is, what other "personally identifiable" information can end up in compiled assemblies and what can be done to prevent this from ending up in the assembly?

I assume if I simply set the project to Release mode to disable debugging symbols in the compiled assembly, this would achieve my goal, however I'm still curious if anything else I am missing.

I generally have no issue with people knowing I made something, but it did kind of irk me that my full name was in my distributed assemblies without my knowledge.

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

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

发布评论

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

评论(3

囍笑 2024-08-24 16:19:06

根据您的 VS 设置,您可能在程序集信息 (AssemblyInfo.cs) 中包含标识信息。如果您通过 ClickOnce 发布,则还可以从“发布”选项卡获取发布信息。这两个标签都是完全可配置的。

您也可能拥有包含识别信息的第三方产品的许可证文件,该文件必须作为外部文件或嵌入式资源与应用程序一起分发;如果是这样,除了向供应商提出来之外,您可能无能为力。

除了这些项目之外,我想不出任何其他原因将个人信息编译到程序集中。调试信息仅存在于 PDB 文件中 - 没有它,您将无法获取符号或行号。这适用于调试和发布模式。

Depending on your VS setup, it's possible that you might have identifying information in the assembly information (AssemblyInfo.cs). If you publish via ClickOnce, then there is also the publish information which you can get to from the Publish tab. Both of these tags are completely configurable.

It's also possible that you have a license file for a 3rd-party product that contains identifying information, which must be distributed with the app, either as an external file or embedded resource; if so, there's probably not much you can do about it other than bring it up with the vendor.

Aside from these items, I can't think of any other reason why personal information would be compiled into an assembly. Debug information only goes in the PDB file - without that, you can't get symbols or line numbers. This applies to both debug and release mode.

与君绝 2024-08-24 16:19:06

所有这些信息都位于 Visual Studio 中的Project/Properties/Application/Assembly Information 下。其中大部分是可选的。只需删除程序集中不需要的内容即可。

All of that information is in Visual Studio under Project/Properties/Application/Assembly Information. Most of it is optional. Just blank out what you don't want in the assembly.

只有一腔孤勇 2024-08-24 16:19:06

您还应该小心处理 XML 文档文件,因为它们可能包含“敏感”信息(作为程序员的笑话,或更糟)。

You should also take care with you XML documentation files, as they can hold "sensitive" information (as a programmer joke, or worse).

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