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

标签 visual-studio visual-studio-2017

在 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/

相关文章:

msbuild - 如何在 MSBuild 还原目标中包含预发布包

visual-studio - 如何清除测试方法的 [Ignore] 缓存? (无需重新启动 Visual Studio)

asp.net-mvc - 为什么 Visual Studio 2019 不创建 Content、AppData、Scripts 文件夹

visual-studio - Visual Studio 2017 不接受缩小 css

session - “IServiceCollection”不包含 'AddSession' 的定义

asp.net - Azure Functions 项目在 Azure Functions 扩展升级后出现 System.ValueTuples 错误

visual-studio - Visual Studio - "attach to particular instance of the process"宏

c# - 将常量呈现到 XML 文档中?

C++ 数组 Visual Studio 2010 与 Bloodshed Dev-C++ 4.9.9.2

visual-studio - 安装后启动 Visual Studio 2017 Community 时出现 "Unknown Error"