VS 项目创建失败集合

VS2008创建Silverlight项目出错的解决办法

      以下是在网络上看到的一位网友的文章,我在安装的时候也遇到了完全一样的问题,相信有很多朋友会遇到这个问题,所以觉得很有必要宣传一下,让更多的朋友在遇到问题的时候更容易的找到问题的答案。

  安装 SilverlightTools_Alpha 的过程还真坎坷.装好后老是创建项目失败.出现:

  The project file ‘…..’ cannot be opened.
  The project type is not supported by this installation.
 

  有人说是安装了先前的版本,但是没有御载干净.可是我的系统一开始就装了 VS2008的正式版,也没有安装过其它的 Silverliglt 版本.所以排除了这种可能性.

  Google 了半天,得到了最后的解决办法如下:(其实很简单,就一句话)
  在 Visual Studio 2008 Command Prompt 下执行命令:

  devenv /ResetSkipPkgs

  这样再创建 Silverlight 程序,就很顺利了.

  Visual Studio 2008 Command Prompt 工具可以在:开始–>所有程序–>Microsoft Visual Studio 2008–>Visual Studio Tools 下找到.

  执行那条命令的作用,别人是的解释如下(这里就直接引用过来吧):
  "The command will try to load any Visual Studio packages that failed previously at some point, such as the WPF project flavor package, which would cause the error message you’re seeing."
  From:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=707955&SiteID=1
  大概意思应该是说这条命令会重新加载 Visual Studio 以前加载失败的包.

  好了,到此为止,我已经可以成功创建 Silverlight 项目了,去体验下先:)

友情提示:
  可以在 Visual Studio 2008正式版下安装的 Silverlight 1.1 Tools Alpha 的下载地址如下:
http://www.microsoft.com/downloads/details.aspx?FamilyId=25144C27-6514-4AD4-8BCB-E2E051416E03&displaylang=en

没有silverlight看看这个

看看你的
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\Web\CSharp\2052
下是否有
SilverlightScriptWeb.zip
这个文件,如果有,

打开Visual Studio 2008 命令提示,执行

devenv /InstallVsTemplates

如果没有,找一个放在那个文件夹下,然后执行

打开Visual Studio 2008 命令提示,执行

devenv /InstallVsTemplates

原文地址:https://www.cnblogs.com/lmyhao/p/1828036.html