安装 studio 2012 后,构建一个针对 framework 4.0 的应用程序。我收到错误消息:
Type 'System.Threading.Tasks.Task' cannot be serialized.
Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with ....
我已经使用 svcutil 重新生成了服务引用。有没有办法指定所有异步的东西都从引用中排除?
?