Some people have issues with debugging in Visual Studio in .NET Core project.

F5 throws an error.

Instead of trying to debug raw, start the project without debugging ( Ctrl F5 ), then attach to the iisexpress process (Ctrl Atl P).