Error creating project :The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found 解决方法: 1.安装 Microsoft Silverlight 4 SDK http://www.microsoft.com/zh-CN/download/details.…
环境说明:Silverlight 5.1,.Net Framework 4.0 1.添加引用System.ServiceModel.Web.dll. 因为 System.Runtime.Serialization.Json.DataContractJsonSerializer 类的引用是在System.ServiceModel.Web.dll这个程序集中. 2.代码如下 using System; using System.Collections.Generic; using System.…