The only difference is that they are in different $env:PSModulePaths but It still does not work when I copy the xHyper-V module to the Path where PSDesiredStateConfiguration also resides. ImplementedAs Name ModuleName Version Properties see this example: PS Z:\Powershell-Scripts\DesiredStateConfiguration> Get-DscResource xVHD in the terminal in vscode it finds DSC Resources in all modules. The weird thing though, is that this only effects the editor itself. in PowerShell ISE everything works as you can see here (left is VSCode, right ISE): Any other installed DSC Resource can not be loaded by Visual Studio Code. Now the problem is, that Visual Studio Code only finds the PSDesiredStateConfiguration DSC Resource which is a default resource, when I want to Import them via Import-DSCResource. I would like to write a Desired State Configuration with some custom modules like xHyper-V and xPSDesiredStateConfiguration. I have Visual Studio Code installed and enabled the PowerShell Extension
0 Comments
Leave a Reply. |