[C#] OpenXML error : The type 'Package' is defined in an assembly that is not referenced. You must add a reference to assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxx' error
openxml error message : The type 'Package' is defined in an assembly that is not referenced. You must add a reference to assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
solve : https://stackoverflow.com/questions/34312627/cannot-create-documents-with-open-xml-sdk
Cannot create documents with Open XML SDK
I'm learning to use the Open XML SDK with Visual Studio Community 2015. I tried to create a document by following the example here: https://msdn.microsoft.com/en-us/library/dd440953(v=office.12).as...
stackoverflow.com
Right-click the References node of your project in Visual Studio's Solution Explorer and choose Add Reference. Then, under Assemblies -> Framework you have to select WindowsBase and that as a reference. Then recompile your project (note that this requires that you are using .NET Framework 3.5 or any later version).