The "GetSilverlightFramworkPath" task was not found. 以及类似情况的解决方案

曾在Visual studio2010上运行一个silverlight程序,出现下面异常。

The "GetSilverlightFramworkPath" task was not found. Check the following:1)The name of the task in the project file is the same as the name of the task class. 2.)The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.)The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET"。

哎,出现这个异常后,我是进行了各种尝试,但到最后发现才是silverlight版本不匹配。

关于我的这个程序的问题解决过程:

1. 首先编译程序后出现上边异常描述以及在配置文件中出现的情况(矩形红线圈标记,有蓝色波浪线)。

 

2. 出现上边异常后,在工程(project)属性中选择的silverlight版本不匹配或不存在所需的silverlight版本(程序所需的是Silverlight5版本),如下图展示(此图中展示了无Silverlight5版本这一情况)。

3. 若在Target Silverlight Version下拉菜单中有Silverlight5版本,直接选中即可。若无,则从

http://www.microsoft.com/zh-CN/download/details.aspx?id=28358中下载。(最好下载个与当前语言环境匹配)

4. 下载并安装后,在浏览project工程的属性,将会发现Silverlight5版本,如下图。

然后选择Silverlight5,保存并编译,即可通过。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值