Attach all files in a folder

You can try this.

You need to open your .XAML file in notepad, search for AssemblyReference where you will see all the Namespaces imported to your workflow. At the end add a Tag

Even your code should work after you add the reference.

<AssemblyReference>System.IO.Compression.FileSystem</AssemblyReference>