Open Microsoft Visual C# Express (or Visual Studio Professional)
- Click on the desktop icon OR Click Start menu and find program
New Project / Visual C#/ Console Application
- Enter Name for Project [Hello] / ok
- There will be some code there -
DELETE that code! (about 15 lines)
- Now,
Enter YOUR Code
CODE ENTERED
Build / Build Solution compiles the program
- If there ARE
syntax errors, message in Error list window at bottom (View/Error list) -
FIX !
SYNTAX ERROR in program (line 12)
Build / Build Solution compiles the program
- If NO syntax errors, message in Output window at bottom (View/Output)
NO SYNTAX ERROR in program
Execute your newly compiled code and check for LOGIC errors
- Debug / Start Without Debugging (ctrl-F5) - executes the code (to add button: 'Tools/Customize')
- Debug / Start Debugging (F5) - executes the code and allows you to stop execution
Save Your Project: File / SAVE ALL
- Only use "SAVE ALL" when saving your project!
- Verify Name and Choose (and Remember) Location when saving!
- Check Box called "Create directory for solution"