使用新建项目,引用底层库,运行时提示http://www.xinxizhan.cn/none-authorization.html。无授权解决方法
在App.xaml中添加以下代码:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="slApp.App" xmlns:auth="clr-namespace:MapBase.Auth;assembly=MapBase" > <Application.Resources> <ResourceDictionary> <auth:aAuth x:Key="auth"></auth:aAuth> </ResourceDictionary> </Application.Resources> </Application>