问题
After adding the reference component in the Toolbox, the following error occurs when trying to use the component:
"A reference to "GMap.Net.WindowsPresentation,Version=1.6.0.0, Culture=neutral, PublicKeyToken=b8b9027b614afef" has been added to the project. In rder to use types from the new reference,press OK to restart the XAML designer. After the XAML Designer restarts, re-create the control on the artboard."
Already restarted Visual Studio, but not resolved.
回答1:
This worked for me.
- Use Windows Explorer to find GMap.NET.Core.dll and GMap.NET.WindowsPresentation.dll
- Right click
- Select Properties
- Click the Unblock button
来源:https://stackoverflow.com/questions/25916092/gmap-net-error-in-wpf