Error CS1555 and CS8804 when running my MVC project Visual Studio NET8.0

Armand Haikarl 0 Reputation points
2023-12-24T14:58:30.7466667+00:00

How do i fix this error when running my MVC project: CSS1555: could not find 'Microsoft.VisualStudio.Web.CodeGeneration.Design' specified for Main Method and CS8804 cannot specify /main if there is a compilation unit with top-level statements.

Screenshot (42)

My project is based on this tutorial: https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-8.0&tabs=visual-studio

ive followed all the steps and this error pops up at the end of part 5. i dont know whats wrong with my program. ive checked all my codes and they have no errors please help

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.