The name ‘ZipFile’ does not exist in the current context when including System.IO.Compression

I”m currently running .net version 4.5 and am trying to use it’s “new” zip functions. I’m including System.IO.Compression and am trying to run the following code: using System.IO.Compression; string startPath = @"c:examplestart"; string zipPath = @"c:exampleresult.zip"; string extractPath = @"c:exampleextract"; ZipFile.CreateFromDirectory(startPath, zipPath); ZipFile.ExtractToDirectory(zipPath, extractPath); The issue I’m getting is that The name ‘ZipFile does not … Read more

Issues with System.Text.Json serializing Unicode characters (like emojis)

I am upgrading an application from .NET Core 2.2 to .NET Core 3.0, and the new System.Text.Json serializer is not behaving the same as Newtonsoft did in 2.2. On characters like a non-breaking-space (u00A0) or emoji characters, Newtonsoft (and even Utf8Json) serialize them as their actual characters, not the Unicode code.