I am trying to add controller to my solution in Asp.net Core project.
While doing so i am getting this error.
I am getting the same message for adding minimal dependencies and full dependencies for controller.
Please help me with this issue. Thanks in advance.
I suggest you to create a new project and copy the code.
I got the same error before. You are getting this error because you updated NUGET packages in your project which you should not do.