Cannot resolve character system and other namespaces when using ASP.NET 5 in the VS2015 community

In the VS2015 community, when I create an ASP.NET 5 project, I get a lot of errors with namespaces, and I'm not sure why this is so.

I downloaded the VS2015 community and downloaded Microsoft ASP.NET and Web Tools 2015 (Beta8) and followed the installation instructions on the Beta8 web tools page and installed the .NET Version Manager (Beta8) in front of the web tools. In VS2015, I click "New Project", go to the Visual C # web section and select "ASP.NET Web Application". Then I select the Web Application template in ASP.NET 5 preview templates. It creates my project. I can start debugging by clicking the green play button with the text “IIS Express” and the page loads in my web browser, as it should be. However, almost all namespaces are marked as "Unable to resolve character." I tried uninstalling and reinstalling and it did not work. In Solution Explorer, I have two links: DNX 4.5.1 and DNX Core 5.0,and they have a lot of links. I noticed that only DNX 4.5.1 has a "Framework Assemblies" containing Microsoft.CSharp, mscorlib, System and System.Core.

The same problem occurs when I select the "Blank" ASP.NET 5 Preview template

Images: What my Startup.cs looks like in VS2015 , Links in Solution Explorer

+4
source share
1 answer

I had the same problem. The problem was in ReSharper, it cannot resolve namespaces using the new ASP.NET 5 namespace approach (using project.json) I installed the latest version of ReSharper (9.2) that supports ASP.NET 5, and the problem was resolved.

+4
source

Source: https://habr.com/ru/post/1613366/


All Articles