Visual Studio Professional 2010:
Steps:
1. Tools > Options > General node > Source View
2. Check Line numbers

Visual Studio Professional 2013:
Steps:
1. Tools > Options > 'Text Editor' node > C# > General
2. Check Line numbers

For more information, see here.