System.IO.Packaging December 23, 2022 by Tarik According to a user comment on this MSDN page, you have to add a reference to the WindowsBase .Net library.