在为解决方案加载项目时遇到Silverlight问题 [英] Troubles with Silverlight when loading a project for a solution

查看:96
本文介绍了在为解决方案加载项目时遇到Silverlight问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从TFS开了一个新的解决方案。 该解决方案包含两个不同的项目,但只有一个项目可以正确加载。 

I have a new solution I recently opened from TFS.  The solution contains two different projects but only one of the projects will load correctly. 

每次我 尝试重新加载失败的项目,我收到此错误消息:"'C:\Program Files(x86)\ MSBuild\Microsoft \Silverlight \v5.0 \ Microsoft.Silverlight.VisualBasic。找不到目标。 确认< Import>中的路径
声明是正确的,并且该文件存在于磁盘上。"   

Every time I  try to reload the project that failed and I get hit with this error message: "'C:\Program Files(x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.VisualBasic.targets' was not found.  Confirm that the path in the <Import> declaration is correct, and that the file exists on disk."   

当我在电脑上安装了最新版本的Silverlight(5.1.50907.0)时,我不确定为什么该路径不存在。

I'm not sure why that path doesn't exist when I have the latest version of Silverlight (5.1.50907.0) installed on my PC.

这是我第一次遇到这个错误,不知道从哪里开始。 我希望有人可能对这个问题有一些经验,可以提供一些见解。

This is the first time I've been hit with this error, not sure where to go from here.  I was hoping someone might have some experience with this issue and could offer some insight.

谢谢,

-ARM

推荐答案

嗨ARM,

欢迎来到MSDN论坛。

请参阅错误信息,请确保此文件
'C:\Program Files(x86)\ MSBuild\Microsoft \Silverlight \v5.0\Microsoft.Silverlight.VisualBasic.targets'
是否存在,如果没有,请检查
Silverlight 5 SDK
  Microsoft Silverlight 5 for Developers  已经ins是否在您的计算机上使用。

Refer to the error message, please make sure this file 'C:\Program Files(x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.VisualBasic.targets' is existing, if not, check if the Silverlight 5 SDK and  Microsoft Silverlight 5 for Developers already installed on your computer or not.

如果你有这个文件,请尝试以下内容:


  1. 卸载项目并编辑csproj文件,检查Silverlight目标版本:
    < TargetFrameworkVersion> xxx < / TargetFrameworkVersion>
    是V5.0
  2. 转到控制面板 - 程序和功能,删除所有Silverlight项目并安装
    Silverlight 5 SDK 和Silverlight 5 for developers
  1. Unload the project and edit the csproj file, check the Silverlight target version: <TargetFrameworkVersion>xxx</TargetFrameworkVersion> is V5.0
  2. Go to Control Panel-Programs and Features, remove all Silverlight items and install the Silverlight 5 SDK and Silverlight 5 for developers

最好的问候,

Sara


这篇关于在为解决方案加载项目时遇到Silverlight问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆