You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
This module gets used as part of the SqlServerDsc build (and likely others), and raises the following error/exception off an initial run from a freshly cloned repository:
Set-WikiModuleVersion : Cannot validate argument on parameter 'Encoding'. The argument "System.Text.ASCIIEncoding" does not belong to the set "unknown,string,unicode,bigendianunicode,utf8,utf7,utf32,ascii,default,oem" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.
Steps to reproduce the problem
Take a fresh, local clone of the SqlServerDsc repository
Run .\build.ps1 -ResolveDependency from within the local repository/directory
Throws error when generating the wiki
Expected behavior
I'd presume this shouldn't error and the Wiki would be generated/updated successfully.
Current behavior
Error/Exception is thrown:
Set-WikiModuleVersion : Cannot validate argument on parameter 'Encoding'. The argument "System.Text.ASCIIEncoding" does not belong to the set "unknown,string,unicode,bigendianunicode,utf8,utf7,utf32,ascii,default,oem" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.
Note that I noticed that the Encoding values were also incorrect in New-WikiFooter and New-WikiHeader - I've added/updated both of these fixes into the PR (#46).
- New-WikiFooter
- Fixed `Encoding`, parameter value passed to `Out-File` to use `ascii` rather
than `[System.Text.Encoding]::ASCII` (issue #45).
- New-WikiSidebar
- Fixed `Encoding`, parameter value passed to `Out-File` to use `ascii` rather
than `[System.Text.Encoding]::ASCII` (issue #45).
- Set-WikiModuleVersion
- Fixed `Encoding`, parameter value passed to `Out-File` to use `ascii` rather
than `[System.Text.Encoding]::ASCII` (issue #45).
Details of the scenario you tried and the problem that is occurring
This module gets used as part of the
SqlServerDsc
build (and likely others), and raises the following error/exception off an initial run from a freshly cloned repository:Set-WikiModuleVersion : Cannot validate argument on parameter 'Encoding'. The argument "System.Text.ASCIIEncoding" does not belong to the set "unknown,string,unicode,bigendianunicode,utf8,utf7,utf32,ascii,default,oem" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.
Steps to reproduce the problem
SqlServerDsc
repository.\build.ps1 -ResolveDependency
from within the local repository/directoryExpected behavior
I'd presume this shouldn't error and the Wiki would be generated/updated successfully.
Current behavior
Error/Exception is thrown:
Set-WikiModuleVersion : Cannot validate argument on parameter 'Encoding'. The argument "System.Text.ASCIIEncoding" does not belong to the set "unknown,string,unicode,bigendianunicode,utf8,utf7,utf32,ascii,default,oem" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.
Suggested solution to the issue
Update
Set-WikiModuleVersion.ps1
to change .....to...
Making this change seemed to remove the error when tried locally.
The operating system the target node is running
OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2004
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-GB
OsMuiLanguages : {en-GB}
Version and build of PowerShell the target node is running
PSVersion 5.1.19041.610
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.610
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the module that was used
0.7.1
The text was updated successfully, but these errors were encountered: