Chapter 5: Creating and Building Projects | 129 |
For Each grade In grades
Console.WriteLine(" - " & grade)
Next
Console.ReadKey()
End Sub
End Module
One item to draw your attention to in Listing
TIP
The call to Console.ReadKey in Listing
Next, you’ll want to compile the code to see if the syntax is good and then run the program to see if it operates properly. The next section explains how compiling and running works with VS.
Compiling Applications
You’ll find several compilation options on the Build menu. Because there are so many options, it isn’t always intuitive which option you should use. The options are scoped to either the current project or the entire solution. The top portion of the menu applies to the entire solution, and the second section is
Building Solutions/Projects
Building typically means that you run the compiler to compile source code files. Sometimes the build includes more than compilation. For example, if you are writing ASP.NET applications, VS will generate code based on the Web controls on the page and then that generated code will be compiled with normal code. Therefore, the term build is more accurate than compile.
During a normal build, VS will only build the items in a project or solution that are out of date. More specifically, only projects that have changes and edits will be rebuilt,