Reference required to assembly windowsbase
Archived Forums. Also discuss all the other Microsoft libraries that are built on or extend the. Sign in to vote. Wednesday, August 30, PM. Try add this package to your project first and it'll help you add the lots of required assemblies in. NET framework. Thursday, August 31, AM. Always backup your files before proceeding. Need Help? Our Support Team is here to help.
Ask Question. Issues and Exceptions OpenXml. The above error occurs when we use the OpenXml Packaging Library.
In this article I will explain how to solve the following compilation error:. CS The type 'System. The Problem. It is not common for code to refer to the other bits in WindowsBase, so I am curious what is the circumstance where this occurs. Then we have to put together an approach to resolve the issues.
We were using. NET 4. There are 2 namespaces which are missing in WindowsBase. Freezable: We are using System. Brush to highlight System.
DependencyObject: We are using System. I was hoping there is a possibility to add references to those specific namespaces and tell them to not look in WindowsBase. You may be able to mitigate with a minimum of effort. I have to confess — I am not a linker guru, but there probably is a way to extract your required types from the WindowsBase assembly.
Scanning the reference source might provide a clue. One more question — can you take a junk copy of your source, and hack out the references, and just those references that cause the dependency on WindowsBase, and see if it is a very select few APIs or if VSTO has a pretty hard dependency on the types in WindowsBase other than System. DependencyObject Seems to be necessary for the Ribbon in Word and overall the context menu. Please let me know if that hotfix fixes things for you.
Were you seeing the symptoms of hanging, or of throwing of exceptions? Thank you! You are a life saver! I added mediaelement. Took me a long time to figure this one out. You are commenting using your WordPress.
You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email.