Fixing code generator : “object reference not set” VS 2017 MVC scaffolding controller for ASP.NET MVC
There was an error running selected code generator: “object reference not set” I have tried all the solution like repairing the VS 2017 but no use. And guess what, this is happing more often in VS2017 I figured Out a solution and want to share with anyone having the same issue: Step1: Clean Visual studio