Visual Studio can report problems discovered while analyzing or building a project.
The course's errors view gives you a central place to inspect those diagnostics.
A useful question is:
The goal is not to make every message disappear by random editing.
The goal is to understand the current evidence.
Consider:
player1.jerseyNumber = "seven";If jerseyNumber is an int, the string:
The new build result replaces the old one as the current evidence.
Do not keep correcting an old error message after the source has changed.
Do not respond to an error by:
Use the diagnostic to investigate the current source within the current teaching boundary.
The diagnostic can tell you something like:
or:
It cannot decide what the correct requirement is.
Use the requirement, UML, and supplied source to determine what the code should mean.
Use the errors view to answer:
Use the debugger to answer:
The next activity introduces runtime exceptions, which belong to that second category.