I had the same issue in my Visual studio 2017 .Net Core application. I closed the Visual studio and re-open fixed everything.
I had the same issue in my Visual studio 2017 .Net Core application. I closed the Visual studio and re-open fixed everything.