Sunday, December 14, 2014

1022 – Visual Studio 2012 C# - Error Window


---
1022 – Visual Studio 2012 C# - Error Window

1) Continue from previous tutorial          
2) Show Line Numbers 
3) Syntax Error 
4) Error List Window       

1) Continue from previous tutorial

Startup codes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
   class Program
   {
       static void Main(string[] args)
       {
           // Output text to the screen.
           Console.WriteLine("Beginning Visual C# 2012!");
           Console.ReadKey();
       }
   }
}

2) Show Line Numbers

2.1) Go to Menu. Select Tools/Option.
Select Text Editor/All Languages/Line Numbers (select).

2.2) Outcome.

3) Syntax Error

3.1) Find the “;” character in line no. 15.
Delete this symbol.
3.2) Outcome.
Visual Studio warns you that there is an error.
If you hover your mouse on the error marker, you will get some explanation.

4) Error List Window

4.1) Go to Menu. Select Debug/Start with debugging.
You get an error dialog.
Select Yes.
4.2) Outcome.
---

No comments:

Post a Comment