ASP.Net 5 Beta 8 xproj cannot be opened

你。 提交于 2019-12-10 03:25:54

问题


I just installed the new release of ASP.Net 5 beta 8. I ran DotNetVersionManager-x64.msi and then WebToolsExtensionsVS14.msi. I tried to open a simple app that worked in beta 7 and it won't load the project with a message

This project is incompatible with the current edition of Visual Studio:

Microsoft Visual Studio Community 2015 Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079

I then tried to create a new ASP.Net 5 web project and got this:

The project file 'c:\users\myfolder\documents\visual studio 2015\Projects\WebApplication3\src\WebApplication3\WebApplication3.xproj' cannot be opened.

The project type is not supported by this installation.

I have uninstalled and reinstalled the DotNetVersionManager and WebToolsExtensionsVS14 with the same result.


回答1:


Fixed it by doing this

Close VS, then delete the folder at %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache and restart – Sayed Ibrahim Hashimi

Thank you @SayedIbrahimHashimi




回答2:


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.

  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...



来源:https://stackoverflow.com/questions/33160689/asp-net-5-beta-8-xproj-cannot-be-opened

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!