无法在 Visual Studio 2010 sp1 上安装 Silverlight 4 工具 [英] Cannot install silverlight 4 tools on visual studio 2010 sp1

查看:23
本文介绍了无法在 Visual Studio 2010 sp1 上安装 Silverlight 4 工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Visual Studio 2010(全新安装),然后应用了 SP1.现在我已尝试安装 Silverlight 4 工具,但收到一条奇怪的错误消息:

I've installed Visual Studio 2010 (fresh install), then applied the SP1. Now I've tried to install the silverlight 4 tools, but i'm getting a strange error message :

必须先安装与 Silverlight Tools 4 语言版本匹配的 Visual Studio 2010 或 Visual Web Developer Express 2010 或 Visual Phone Developer Express 2010,然后才能继续安装 Silverlight Tools.Silverlight Tools 可在 http://go.microsoft.com/fwlink/?LinkId=177432.

"Visual Studio 2010 or Visual Web Developer Express 2010 or Visual Phone Developer Express 2010 that matches the language version of Silverlight Tools 4 must be installed before installation of Silverlight Tools can continue. Silverlight Tools is available in other languages at http://go.microsoft.com/fwlink/?LinkId=177432.

必须先安装 Visual Studio 2010 的 Visual Web Developer 功能,然后才能继续安装."

The Visual Web Developer feature for Visual Studio 2010 must be installed before installation can continue."

我已经三重检查,没有语言冲突.浏览网页,有些人有同样的错误,但有一些 MSDN 帖子说使用 SP1 你不需要安装 Silverlight 工具,因为它们已经与 SP1 捆绑在一起,但这里不是这种情况,我不在 VS for silverlight 中没有任何项目模板,并且没有安装这些工具.有什么想法吗??

I've triple checked and there's no language conflict. Browsing the web, some guys have the same error, but there are some MSDN posts that say that with SP1 you don't need to install silverlight tools because they're already bundled with SP1, but that's not the case here, I don't have any project templates in VS for silverlight, and the tools aren't installed. Any ideas??

推荐答案

发现发生了什么

我首先安装了 Visual Studio,并删除了一些我认为不需要的组件(c++、f# 等).我还删除了可视化 Web 开发人员工具(不应该这样做......你马上就会明白为什么).
之后,我安装了 Service Pack 1.然后,在尝试安装 Silverlight 4 工具时,我收到一条奇怪的错误消息,无法继续.网上搜了一下,发现VS2010的SP1自带了Silverlight 4工具,应该是用它安装的.
问题来了:由于我没有安装带有Web开发人员工具的VS安装,SP1安装程序只是忽略了Silverlight工具的安装.而且由于微软的 Silverlight 4 工具包安装程序有问题(如果你有 VS2010 的 SP1,你只会得到这个奇怪的错误并且无法继续),我被卡住了.
我是怎么解决的?在VS2010中添加web开发者工具,重新申请SP1.这是比卸载 SP1、安装 Silverlight 4 工具和重新安装 SP1 快得多的解决方案.让我们希望 Microsoft 逐渐意识到这种情况,并在未来升级他们的 Silverlight 工具安装程序,使其更聪明一些,这样我们就不必采取这些变通办法了

I installed first Visual Studio, and removed some components that I thought wouldn’t be necessary (c++, f#, etc). I also removed visual web developer tools (shouldn’t have done that… you’ll see why in a minute).
After that, I installed Service Pack 1. Then, when trying to install the Silverlight 4 tools, I got an strange error message and I couldn’t continue. After searching the web, I found out that the SP1 for VS2010 comes with the Silverlight 4 tools bundled, and it should be installed by it.
The problem comes here : since I didn’t have my VS installation with the web developer tools installed, the SP1 installer just disregarded the Silverlight tools installation. And since Microsoft’s Silverlight 4 toolkit installer is buggy (if you have SP1 for VS2010 you just get this weird error and can’t continue), I was stuck.
How did I solve it? Add web developer tools to VS2010, and reapply SP1. It’s a much faster solution than uninstalling SP1, installing Silverlight 4 tools and reinstalling SP1. Let’s hope that Microsoft grows aware of this situation, and upgrades their Silverlight tools installer to be a little more clever in the future so we don’t have to be doing these workarounds

这篇关于无法在 Visual Studio 2010 sp1 上安装 Silverlight 4 工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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