servicestack System.Runtime.Serialization预加载错误

时间:2014-09-22 16:51:44

标签: servicestack ormlite-servicestack

为什么会出现此错误?

 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

1 个答案:

答案 0 :(得分:1)

在项目参考中 需要添加System.Runtime.Serialization名称解决了问题