CS0246 error when creating a new Asp.net mvc core application

Asked

Viewed 825 times

1

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

CS0246 The type or namespace name "System" cannot be found(missing a using directive or a reference from Assembly? ) Webapplication2 D: Projectthis Webapplication2 Webapplication2 Program.Cs

How can I fix this?

1 answer

0

According to microsoft documentation: Error CS0246 this error occurs when a reference is not found. In this case, check the namespace System was declared: using System

  • The reference using System was added and the problem is precisely in her, the above error refers to her, apparently is not found this namespace, I could not find anything relevant on the internet about it. 'using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.Aspnetcore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extonsensi..Configuration; using Microsoft.Extensions.Logging;'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.