ASP.Net 5 Beta 8 xproj无法打开

时间:2015-10-16 00:31:02

标签: visual-studio asp.net-core beta

我刚刚安装了新版本的ASP.Net 5 beta 8.我运行了DotNetVersionManager-x64.msi,然后运行了WebToolsExtensionsVS14.msi。我尝试打开一个在beta 7中运行的简单应用程序,它不会通过消息加载项目

  

此项目与当前版本的Visual Studio不兼容:

     

Microsoft Visual Studio社区2015   版本14.0.23107.0 D14REL
  Microsoft .NET Framework
  版本4.6.00079

然后我尝试创建一个新的ASP.Net 5 Web项目,并得到了这个:

  

项目文件&c; \ users \ myfolder \ documents \ visual studio 2015 \ Projects \ WebApplication3 \ src \ WebApplication3 \ WebApplication3.xproj'无法打开。

     

此安装不支持项目类型。

我已经卸载并重新安装了DotNetVersionManager和WebToolsExtensionsVS14,结果相同。

2 个答案:

答案 0 :(得分:5)

通过这样做来修复它

关闭VS,然后删除%localappdata%\ Microsoft \ VisualStudio \ 14.0 \ ComponentModelCache中的文件夹并重新启动 - Sayed Ibrahim Hashimi

谢谢@SayedIbrahimHashimi

答案 1 :(得分:1)

The easiest way to get started building applications with ASP.NET 5 is to install the latest version of Visual Studio 2015 (including the free Community edition).

  1. Install Visual Studio 2015

    Be sure to specify that you want to include the Microsoft Web Developer Tools. ../_images/web-dev-tools.png

  2. Install ASP.NET 5.

    This will install the latest ASP.NET 5 runtime and tooling.

  3. Enable the ASP.NET 5 command-line tools. Open a command-prompt and run:

    dnvm upgrade

    This will make the default .NET Execution Environment (DNX) active on the path.

  4. On Windows 7 and Windows Server 2008 R2 you will also need to install the Visual C++ Redistributable for Visual Studio 2012 Update 4.

You are all set up and ready to write your first ASP.NET 5 application! Reference...