The "GetSilverlightFramworkPath" task was not found. 以及类似情况的解决方案
2013-08-04 10:11
344 查看
曾在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,保存并编译,即可通过。
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,保存并编译,即可通过。
相关文章推荐
- NDK编译问题: Program "ndk-build" is not found in PATH 和 Unable to launch cygpath. Is Cygwin on the path?
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 在 Linux 虚拟机中手动安装或升级 VMware Tools以及Searching for a valid kernel header path... The path "" is not val
- Getting The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight for Phone\v4.0\Microsoft.Silverlight..Overrides.targets" was not found
- Windows Azure - "The Path is too long after being fully qualified" 错误信息的解决方案(转)
- 在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"的解决方案
- SSH出错---The method getRealPath(String) from the type ServletRequest is deprecated request.getRealPath("")
- 【SpringMVC】The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path解决方案
- How To Get Application Path,And How To Get The Path's Directory,File Name,And Type Info(如何得到运行程序的路径,以及如何得到路径的文件夹,文件名,以及类型等等信息)
- jsp页面报红,出现The suprclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方案
- NDK编译问题: Program "ndk-build" is not found in PATH 和 Unable to launch cygpath. Is Cygwin on the path?
- Windows Azure - "The Path is too long after being fully qualified" 错误信息的解决方案(转)
- Ubuntu安装VMware-tools时出现the path "" is not a valid path would you like to change it-完美解决方案
- 提交appStroe 报错 "Missing or invalid signature. The bundle '***' at bundle path 'Payload***解决方案
- 关于myeclipse项目导入到eclipse 标签库以及The superclass "javax.servlet.http.HttpServlet" was not found没有发现
- class not found (php)明明命名空间和类目都存在却总是提示找不到的奇葩现象原因以及解决方案
- 41.【xcode】错误之Could not launch "" failed to get the task for process
- XCode Could not launch "" failed to get the task for process
- 微信素材上传返回提示 "errcode":41005的原因以及以及解决方案
- 【.Net码农】关于使用FileUpload控件报 Could not find a part of the path "X/1.jpg"