Compare commits

...

1 Commits

3 changed files with 10 additions and 2 deletions
+8
View File
@@ -1,5 +1,13 @@
# v2 Changelog # v2 Changelog
## [v2.0.7]
### Main changes
- Fixed Invoke-DscResource error when a class-based resource module path contains a space.
[v2.0.7]: https://www.powershellgallery.com/packages/PSDesiredStateConfiguration/2.0.7
## [v2.0.6] ## [v2.0.6]
### Main changes ### Main changes
@@ -9,7 +9,7 @@
RootModule = 'PSDesiredStateConfiguration.psm1' RootModule = 'PSDesiredStateConfiguration.psm1'
# Version number of this module. # Version number of this module.
moduleVersion = '2.0.6' moduleVersion = '2.0.7'
# Supported PSEditions # Supported PSEditions
CompatiblePSEditions = @('Core') CompatiblePSEditions = @('Core')
@@ -4749,7 +4749,7 @@ function Invoke-DscClassBasedResource
$iss = [System.Management.Automation.Runspaces.InitialSessionState]::CreateDefault2() $iss = [System.Management.Automation.Runspaces.InitialSessionState]::CreateDefault2()
$powershell = [PowerShell]::Create($iss) $powershell = [PowerShell]::Create($iss)
$script = @" $script = @"
using module $path using module "$path"
Write-Host -Message ([$type]::new | out-string) Write-Host -Message ([$type]::new | out-string)
return [$type]::new() return [$type]::new()