1、项目-》右键-》添加引用-》找到System.Runtime.Serialization 2、代码中加上 Using System.Runtime.Serialization 转载于:https://www.cnblogs.com/herizai/p/7193831.html