gpt4 book ai didi

visual-studio - 如何避免看到 Visual Studio 反编译器法律警告对话框?

转载 作者:行者123 更新时间:2023-12-04 13:41:11 28 4
gpt4 key购买 nike

在 Visual Studo 中,如果您启用了“启用反编译源导航”选项,并且您在某些没有源代码的标识符上选择“转到定义”,您将收到如下对话框:

enter image description here

上面对话框的文字,为了搜索引擎的利益:

IMPORTANT: Visual Studio includes decompiling functionality ("Decompiler") that enables reproducing source code from binary code. By accessing and using the Decompiler, you agree to the Visual Studio license terms and the terms for the Decompiler below. If you do not agree with these combined terms, do not access or use the Decompiler.

You acknowledge that binary code and source code may be protected by copyright and trademark laws. Before using the Decompiler on any binary code, you need to first: (i) confirm that the license terms governing your use of the binary code do not contain a provision which prohibits you from decompiling the software; or (ii) obtain the permission to decompile the binary code from the owner of the software.

Your use of the Decompiler is optional. Microsoft is not responsible and disclaims all liability for your use of the Decompiler that violates any laws or any software license terms which prohibit decompiling of the software.

I agree to all of the foregoing: [Yes] [No]



问题是,我看到这种对话的次数比我应该多。我希望每个用户在每次安装 Visual Studio 时只能看到一次;相反,我每个工作日都会看到几次。

这是预期的行为吗?如果不是,可能是什么原因造成的?如果是,它如何被永久禁用/规避/挫败/拙劣/黑客攻击不存在?

最佳答案

不幸的是,我认为这需要一些 VS-dll 操作。
该选项似乎在以下 dll 中:

{Disk}:\Program Files (x86)\Microsoft Visual Studio\{VS-version}\Enterprise\Common7\IDE\CommonExtensions\Microsoft\ManagedLanguages\VBCSharp\LanguageServices\Microsoft.VisualStudio.LanguageServices.dll
但是好像每次都会调用这个服务,并且只保存在内存中,而不是任何设置中:
enter image description here
然后我们去:
enter image description here
最终在这里:
enter image description here
(用dotPeek反编译)

中也有类似的警告VS 代码 , 在那里禁用它:
替换旁边的函数 registerCommand("csharp.showDecompilationTerms"function(){}~\.vscode\extensions\ms-dotnettools.csharp-{version}\dist\extension.js .
如下图所示:
enter image description here

关于visual-studio - 如何避免看到 Visual Studio 反编译器法律警告对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56803498/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com