我有一个Solution.dll,它具有打开SharePoint Online命令行管理程序并执行上述操作的方法。当我这样做时,我有时碰巧得到异常,
Could not load type 'Microsoft.Online.SharePoint.TenantManagement.SPOConditionalAccessPolicyType' from assembly 'Microsoft.Online.SharePoint.Client.Tenant, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce
\Modules\MyModule.psd1')当我导入这个模块时,我得到(错误数量的一小部分):+ Import-Module Test + CategoryInfo : InvalidOperationImport-Module : The following error occurred while loading t
为什么"import-module foo“在这里不起作用?C:\Program Files (x86)\PowerShell Community Extensions\pscx3\Pscx> import-module -force pscx
import-module : The specified module 'foo' was not loaded because no valid module file was foundAt line:1 char:1
+ <e