-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Hi.
I have an application (Service) targeting .NET 4.61 and trying to move to AspNetCore self host with WebListener.
I am trying to investigate the requirements by testing it out in a console application.
The project i crated is a normal Windows console application, i referenced all the required packages with nuget and created required Startup class and create and start the host with WebHostBuilder.
I dont have any project.json files in my project and adding it didn't help.
Application runs fine and i get Web Api calls and routing functioning correctly.
The only problem that i have is that when i try to access MVC web page the views are not created but i rather get an error page with dozen of errors such as
The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
Predefined type 'System.Object' is not defined or imported
The type or namespace name 'ViewFeatures' does not exist in the namespace 'Microsoft.AspNetCore.Mvc' (are you missing an assembly reference?)
Am i missing something ?