【问题标题】:Can't open simple Console Application with Visual Studio 2015 CTP Preview无法使用 Visual Studio 2015 CTP Preview 打开简单的控制台应用程序
【发布时间】:2015-03-26 15:01:00
【问题描述】:

我下载了 Visual Studio 2015 CTP Preview,因为我想测试一下是否可以加载 Roslyn Code Issue 扩展。

当我尝试使用 New Project -> Console Aplication 创建一个简单的控制台应用程序时,我收到以下错误对话框。

任何想法可能导致这种情况?我已经重新安装了同样的问题。

【问题讨论】:

  • 尝试创建一个新的控制台应用程序(没有那个扩展)。关闭您的 VS,然后重新打开您刚刚创建的应用程序。如果可行,则意味着您的安装是正确的。如果没有,请重新安装您的 VS 并重试。
  • 是的,当我这样做时,它会打开解决方案(以前不会这样做),但解决方案是空的,当我再次添加控制台项目时,它会给出同样的错误。让我尝试重新安装,看看我是否搞砸了。
  • 尝试删除%LOCALAPPDATA%\Microsoft\VisualStudio\14.0\ComponentModelCache
  • 这是在实验实例中吗?我遇到了类似的问题并删除了我的整个%appdata%\Microsoft\VisualStudio\14.0{ExperimentalName}\ folder

标签: c# visual-studio roslyn visual-studio-2015 ctp


【解决方案1】:

我遇到了同样的问题,并在另一个网站上找到了解决方案。以下是需要执行的步骤:

Open a Visual Studio command window with admin privileges. This can be done from Windows search after clicking on the Windows button (or Start button - depending on the OS) located in the lower left corner. Make sure that you don't have any Visual Studio project open before proceeding.

Type in prompt in the search box and select "Developer Command Prompt". Right click on this and select run with admin privileges.

In the command window Enter:

cd C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

In the command window then enter:

devenv /installvstemplates

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-26
    • 1970-01-01
    • 1970-01-01
    • 2013-06-06
    • 2015-04-13
    • 1970-01-01
    • 1970-01-01
    • 2012-10-26
    相关资源
    最近更新 更多