Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在模块 System.Windows.dll 中找不到类型 System.Windows.Automation.Peers.FrameworkElementAutomationPeer。
如何解决此错误?我缺少什么命名空间?
根据 MSDN,System.Windows.Automation.Peers命名空间位于PresentationFramework.dll
System.Windows.Automation.Peers
PresentationFramework.dll
您的应用程序中是否引用了 PresentationFramework.dll?
MSDN: http: //msdn.microsoft.com/en-us/library/system.windows.automation.peers.frameworkelementautomationpeer (v=vs.110).aspx
从参考中删除了 Microsoft.Phone.Controls.Maps.dll。