Error while running Asp Net Core Application

1

I'm getting the following error:

  

An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.

     

One or more compilation references are missing. Ensure that your project is referencing 'Microsoft.NET.Sdk.Web' and the 'PreserveCompilationContext' property is not set to false.

The type or namespace name 'Hosting' does not exist in the namespace 'Microsoft.AspNetCore.Razor' (are you missing an assembly reference?)
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore._Views_Home_Index_cshtml), @"mvc.1.0.view", @"/Views/Home/Index.cshtml")]

The type or namespace name 'Hosting' does not exist in the namespace 'Microsoft.AspNetCore.Razor' (are you missing an assembly reference
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"9a0db165e84c12ef1478a3e118ff09ac424c3083", @"/Views/Home/Index.cshtml")]

The type or namespace name 'Hosting' does not exist in the namespace 'Microsoft.AspNetCore.Razor' (are you missing an assembly reference?)
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"fa0a2a6ae9a133737c5f250092ffeae1d2acfcfa", @"/Views/_ViewImports.cshtml")]
    
asked by anonymous 29.11.2018 / 17:34

0 answers