我正在运行 Windows 10(PowerShell v5.0.10240.16384、Chocolatey 最新版本和 Boxstarter 最新版本)。我似乎无法安装 boxstarter 的某些部分:
- boxstarter.winconfig
- boxstarter.bootstrapper
- boxstarter.chocolatey
它失败并显示类似于以下的消息(日志报告相同):
Exception : System.IO.FileLoadException: The given assembly name or
codebase was invalid. (Exception from HRESULT: 0x80131
047)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.Lo
adBinaryModule(PSModuleInfo parentModule, Boolean trySn
apInName, String moduleName, String fileName, Assembly
assemblyToLoad, String moduleBase, SessionState ss, Imp
ortModuleOptions options, ManifestProcessingFlags manif
estProcessingFlags, String prefix, Boolean loadTypes, B
oolean loadFormats, Boolean& found, String shortModuleN
ame, Boolean disableFormatUpdates)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.Lo
adModuleNamedInManifest(PSModuleInfo parentModule, Modu
leSpecification moduleSpecification, String moduleBase,
Boolean searchModulePath, String prefix, SessionState
ss, ImportModuleOptions options, ManifestProcessingFlag
s manifestProcessingFlags, Boolean loadTypesFiles, Bool
ean loadFormatFiles, Object privateData, Boolean& found
, String shortModuleName)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.Lo
adModuleManifest(String moduleManifestPath, ExternalScr
iptInfo scriptInfo, Hashtable data, Hashtable localized
Data, ManifestProcessingFlags manifestProcessingFlags,
Version version, Version requiredVersion, Nullable`1 re
quiredModuleGuid, ImportModuleOptions& options, Boolean
& containedErrors)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.Lo
adModuleManifest(ExternalScriptInfo scriptInfo, Manifes
tProcessingFlags manifestProcessingFlags, Version versi
on, Version requiredVersion, Nullable`1 requiredModuleG
uid, ImportModuleOptions& options)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.Lo
adModule(PSModuleInfo parentModule, String fileName, St
ring moduleBase, String prefix, SessionState ss, Object
privateData, ImportModuleOptions& options, ManifestPro
cessingFlags manifestProcessingFlags, Boolean& found, B
oolean& moduleFileFound)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.Lo
adUsingExtensions(PSModuleInfo parentModule, String mod
uleName, String fileBaseName, String extension, String
moduleBase, String prefix, SessionState ss, ImportModul
eOptions options, ManifestProcessingFlags manifestProce
ssingFlags, Boolean& found, Boolean& moduleFileFound)
at Microsoft.PowerShell.Commands.ImportModuleCommand
.ImportModule_LocallyViaName(ImportModuleOptions import
ModuleOptions, String name)
at Microsoft.PowerShell.Commands.ImportModuleCommand
.ProcessRecord()
at System.Management.Automation.CommandProcessor.Pro
cessRecord()
TargetObject :
CategoryInfo : NotSpecified: (:) [Import-Module], FileLoadException
FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Comman
ds.ImportModuleCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at Install-Boxstarter, C:\ProgramData\chocolatey\lib\Bo
xStarter.WinConfig\tools\Setup.ps1: line 28
at <ScriptBlock>, C:\ProgramData\chocolatey\lib\BoxStar
ter.WinConfig\tools\chocolateyinstall.ps1: line 5
at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\cho
colateyScriptRunner.ps1: line 42
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
有没有什么办法解决这一问题?