でます。gacutilなしPowerShellは、エラーメッセージの下の下PowerShellを使用して、DLLのGACを登録することができませんまたはWindows Server 2012
PS C:\Users\Administrator\Desktop> .\Register_dll.cmd
C:\Users\Administrator\Desktop>[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=7f48c3199e5dff41")
The filename, directory name, or volume label syntax is incorrect.
C:\Users\Administrator\Desktop>$publish = New-Object System.EnterpriseServices.Internal.Publish
'$publish' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Administrator\Desktop>$publish.GacInstall("C:\Users\Administrator\Desktop\Mydll.dll")
'$publish.GacInstall' is not recognized as an internal or external command,
operable program or batch file.
私は管理者としてPowerShellで走っているバッチファイルでを投げ続け、なぜあなたはすべての、私を助けることができるしてください私はバージョンとpublictokenを確認しました。私はここで問題ではないと思う。
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f48c3199e5dff41")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("C:\Users\Administrator\Desktop\MyDll.dll")
コマンドバッチスクリプトでpowershell構文を使用しようとしています。 Powershellスクリプトは '.ps1'拡張子を使います。 –
助けていただきありがとうございます。私はPowershellを新しくしています – user1421582