Error CS0246 when creating a new asp.net mvc core application

1

I have a problem, when creating a new asp.net-core project in visual studio 2017 the following error appears when compiling:

  

Error CS0246 The name of the "System" type or namespace can not be   (is missing a using directive or a   assembly?) WebApplication2   D: \ Test Project \ WebApplication2 \ WebApplication2 \ Program.cs

How can I resolve this?

    
asked by anonymous 05.09.2017 / 18:01

1 answer

0

According to Microsoft documentation: Error CS0246 this error occurs when a reference is not found. In this case, make sure that the System  was declared: using System

    
05.09.2017 / 18:30