无法在 powershell 中加载 System.Windows.Controls 程序集
Unable to load System.Windows.Controls Assembly in powershell
我一直在尝试使用如下命令在 powershell 中加载程序集:
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Controls")
它不起作用。
Wells 已加载。
尝试运行这个。
$ExportedTypes = [appdomain]::CurrentDomain.GetAssemblies() | select ExportedTypes
Foreach($ExportedType in $ExportedTypes){
$ExportedType.ExportedTypes | ?{$_.FullName -like "system.windows.controls*"} | select FullName, Module
}
如果您得到任何结果,它已经加载。
您正在加载的程序集实际上是 PresentationFramework.dll
的一部分
我一直在尝试使用如下命令在 powershell 中加载程序集:
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Controls")
它不起作用。
Wells 已加载。
尝试运行这个。
$ExportedTypes = [appdomain]::CurrentDomain.GetAssemblies() | select ExportedTypes
Foreach($ExportedType in $ExportedTypes){
$ExportedType.ExportedTypes | ?{$_.FullName -like "system.windows.controls*"} | select FullName, Module
}
如果您得到任何结果,它已经加载。
您正在加载的程序集实际上是 PresentationFramework.dll
的一部分