C:\WINDOWS\ASSEMBLY\ 目录中的那些东西是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3693689/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 07:35:42  来源:igfitidea点击:

What are those stuff in C:\WINDOWS\ASSEMBLY\ directory?

windows

提问by COMer

I just came across this directory and it seems totally a different world.

我刚刚遇到这个目录,这似乎是一个完全不同的世界。

Anyone knows what's that?

有谁知道那是什么?

回答by Crippledsmurf

The .NET Framework is an environment (runtime) on top of which code executes. A .NET assembly is a container for code written to execute using the .NET Framework. Assemblies can be either libraries (.dll files) or executables (.exe files).

.NET Framework 是一个环境(运行时),代码在其上执行。.NET 程序集是编写代码以使用 .NET Framework 执行的容器。程序集可以是库(.dll 文件)或可执行文件(.exe 文件)。

The .NET Framework has a set of common libraries that can be used by any application which executes under the control of the .NET Framework and the C:\Windows\Assembly folder is where these common libraries are stored.

.NET Framework 有一组公共库,可供在 .NET Framework 控制下执行的任何应用程序使用,C:\Windows\Assembly 文件夹是存储这些公共库的位置。

The reason that the folder displays differently to other folders is because of the special role of this folder as the common location for shared libraries. Microsoft created a special view of this folder that provides easy access to information about the assemblies in that folder as well as providing easy access to operations commonly performed on an assembly such as the Uninstall option in the right-click menu for an assembly.

该文件夹与其他文件夹的显示方式不同的原因是该文件夹作为共享库的公共位置的特殊作用。Microsoft 创建了此文件夹的特殊视图,可以轻松访问有关该文件夹中程序集的信息,并可以轻松访问通常在程序集上执行的操作,例如程序集右键单击菜单中的卸载选项。

回答by VoodooChild

Using a search engine

使用搜索引擎

It is used to store .NET assemblies, which can be shared between application.

它用于存储 .NET 程序集,可以在应用程序之间共享。