为什么会出现此错误?
Error 12 Unknown build error,
'Cannot resolve dependency to assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'
because it has not been preloaded. When using the ReflectionOnly APIs,
dependent assemblies must be pre-loaded or loaded on demand through the
ReflectionOnlyAssemblyResolve event.' WpfApp
答案 0 :(得分:1)
在项目参考中 需要添加System.Runtime.Serialization名称解决了问题