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=184.108.40.206, 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.
Best answer by KyleCraft
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).