Build Page

Topic updated 11-6-2007

The Build Page provides a common user interface for the build process, used by all Project Templates. It can be opened from the Build Toolbar, and using the context menu of a project node in the Project Explorer.

 

main_buidfirstapp-26

 

Build Button
Click this button to start the build process.

Goto Error Button
By clicking this button you can open the Source Editor with the source code of the project item that is the cause of the problem. This only works if the error or warning selected in the list is directly related to the source code generated by a project item.

 

Force Re-Generation
If checked, the in-memory representations of all project items are regenerated before the source code is written. If unchecked, only the in-memory representations of project items that have been changed are regenerated. Re-generation takes significantly longer, but sometimes it is needed to get a successful build.

Build Only (No generation)
If checked, no source code is generated, and the source code in the output folder is built directly.

Reformat output
Check this to have all source reformatted after it is generated. The reformatting does things such as aligning code with tabs according to nesting level.

Show Warnings and Show Errors
These checkboxes affect the list of warnings and errors after it has been created by the compiler. Warnings can be hidden by turning off the Show Warnings checkbox, en be displayed by turning it on again. The Show Errors checkbox works the same way.

 

Open output folder
Click this link to open a new instance of the Windows Explorer showing the contents of the output folder.

Clean output folder
Click this link to delete all files and subdirectories in the output folder. Different scenarios may result in the situation that the output folder contains old source code (not created with the last build) that makes compilation fail. This can be solved by cleaning the output folder.

 

See also

The Building your First Application chapter gives examples of the Build page in use:

Build the BO-Layer
Build the ASP.NET project