I am using Visual Studio 2017.
When I set the project up I selected Individual User Accounts for the Authentication method. I have made no changes to that part of it. I added my models and some controllers and views and now when I try to build my code I get the following errors
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'SelectListItem' does not exist in the namespace 'Greenbridge.Models.System.Web.Mvc' (are you missing an assembly reference?) Greenbridge X:\DotNet Projects\Greenbridge\Greenbridge\Models\AccountViewModels.cs 21 Active
Error CS0234 The type or namespace name 'SelectListItem' does not exist in the namespace 'Greenbridge.Models.System.Web.Mvc' (are you missing an assembly reference?) Greenbridge X:\DotNet Projects\Greenbridge\Greenbridge\Models\ManageViewModels.cs 84 Active
Error CS0266 Cannot implicitly convert type 'System.Collections.Generic.List<System.Web.Mvc.SelectListItem>' to 'System.Collections.Generic.ICollection<Greenbridge.Models.System.Web.Mvc.SelectListItem>'. An explicit conversion exists (are you missing a cast?) Greenbridge X:\DotNet Projects\Greenbridge\Greenbridge\Controllers\AccountController.cs 297 Active
Without starting over from scratch how do I fix this?
The file you attached doesn't contain the source files the compiler is complaining about. It is complaining about AccountViewModel.cs, ManageViewModel.cs and AccountController.cs.
Note that I'm assuming Nuget is able to download everything properly. Therefore if you closed and reopened the solution and then recompiled do the errors go away?
Did you try quick action on the identifiers and did it present the option of the fix I mentioned?