UWP 序列化权限受限
在UWP,序列化权限受限
在启动目录中 /Properities/Default.rd.xml 文档中
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> <Application> <!-- An Assembly element with Name="*Application*" applies to all assemblies in the application package. The asterisks are not wildcards. --> <Assembly Name="*Application*" Dynamic="Required All"/> <!-- Add your application specific runtime directives here. --> <Namespace Name="QA.Model" DataContractJsonSerializer="Required All" Browse="Required All" Dynamic="Required All" MarshalObject ="Required All" Serialize="Required All"/> </Application> </Directives>

浙公网安备 33010602011771号