Solved

Attempting connect-nutanixcluster in VS Code ... Could not load file or assembly. Anyone know a way to fix?

  • 5 April 2018
  • 1 reply
  • 2445 views

Userlevel 4
Badge +1
I am attempting to use the PowerShell Cmdlets within VS Code. I installed the .msi and quickly realized I needed to copy the module contents from the program files directory it installs to into C:\Windows\System32\WindowsPowerShell\v1.0\Modules. I can now successfully load the NutanixCmdletsPSSnapin but when I attempt to connect to my cluster I am met with:

Connect-NutanixCluster : Could not load file or assembly 'NLog, Version=3.2.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c' or one of its dependencies. The system cannot find the file specified.

NLog is in the modules directory and permissions are correct.

Hoping someone has an idea.
icon

Best answer by KyleCraft 6 April 2018, 18:00

This was a VSCode problem. It was working fine with the PowerShell ISE. Updating to VSCode 1.22.1 seems to have fixed my problem. (FYI if there is anyone on earth that would run into this).
View original

1 reply

Userlevel 4
Badge +1
This was a VSCode problem. It was working fine with the PowerShell ISE. Updating to VSCode 1.22.1 seems to have fixed my problem. (FYI if there is anyone on earth that would run into this).

Reply