我试图用这个代码在PowerShell中:但是我得到这个错误PowerShell的 - 缺少System.Collections.Generic在C: WINDOWS 装配 GAC_MSIL
Add-Type -AssemblyName "System.Collections.Generic"
:
Add-Type : Cannot add type. One or more required assemblies are missing.
我查看过C:\ windows \ assembly \ GAC_MSIL,可以看到没有名为System.Collections.Generic的文件夹。
我是否需要下载此库,如果有的话?
@凯斯希尔在几分钟前给你答案! – JPBlanc