Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent folder overwrite support throws in DSC 1.1 #45

Open
HamsterExAstris opened this issue Jan 3, 2025 · 0 comments
Open

Agent folder overwrite support throws in DSC 1.1 #45

HamsterExAstris opened this issue Jan 3, 2025 · 0 comments

Comments

@HamsterExAstris
Copy link

#43 added support for overwriting an existing agent folder, but the ZipFile.ExtractToDirectory overload it calls only exists on .NET Core; this means it fails when hitting that code branch in DSC 1.1, which still uses .NET Framework.

Cannot convert argument "entryNameEncoding", with value: "True", for "ExtractToDirectory" to type
"System.Text.Encoding": "Cannot convert value "True" to type "System.Text.Encoding". Error: "Invalid cast from
'System.Boolean' to 'System.Text.Encoding'.""
    + CategoryInfo          : NotSpecified: (:) [], CimException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
    + PSComputerName        : localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant