cloudbase / windows-imaging-tools

Tools to automate the creation of a Windows image for OpenStack, supporting KVM, Hyper-V, ESXi and more.
Apache License 2.0
685 stars 230 forks source link

Create windows image error RegularExpressions #386

Closed DavidePrette closed 11 months ago

DavidePrette commented 11 months ago

Hi! I get this error when I try to launch .\Examples\create-windows-cloud-image.ps1 Error: Add-Type: C:\Users\Admin\Documents\repo\windows-imaging-tools\Interop.ps1:1353 Line | 1353 | Add-Type -TypeDefinition $code -ReferencedAssemblies "System.Xml" … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | (15,19): error CS0234: The type or namespace name 'RegularExpressions' does not exist in the namespace | 'System.Text' (are you missing an assembly reference?) using System.Text.RegularExpressions; ^ Import-Module: The specified module '.\WinImageBuilder.psm1' was not loaded because no valid module file was found in any module directory.