Bongani Gumede

Bongani Gumede

  • NA
  • 63
  • 16.5k

An error occurred during the compilation of a resource

Jul 13 2018 10:45 AM

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.

Generated Code
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?)

    1. [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?)

    1. [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?)

    1. [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b0f661eade43a6d7fa1a9892a1a03470ace30838", @"/Views/_ViewImports.cshtml")]

Answers (1)