Thursday, April 10, 2014

Introduction to Visual Studio and Templates




Visual Studio
Microsoft Visual Studio is an Integrated Development Environment (IDE) created by Microsoft Corporation for Application Development. This IDE is used to develop console and windows applications run able only in Windows Platform. It is also used to develop web application also. Visual Studio 2008 is one of the versions of Visual Studio. Some other versions are Visual Studio 2005 or Visual Studio 2010 or Visual Studio Team System.
Visual Studio provides some features to its users. Some of these are:
·         Code editing
·         Debugging the code
·         Designing the User Interface
·         Some helping tools
·         Extensibility
Visual Studio has some built-in language compilers integrated in it. The main languages are C# and Visual Basic. But one can create any application in another language such as J#, C++ etc.
Templates
Visual studio project and item templates provide reusable and customizable project and item stubs that accelerates the development process, removing the need to create new projects and items from scratch.
Depending on the instance of the Visual Studio, generally there are 2 types of templates we can see. They are:
·                                  Project templates
Windows
Web
Smart Device
 Office
 Database
 Reporting
Test
WCF
Workflow
·                                  Item templates
 General
 Web
  Script

How To Create a Hello World in a Console Application using C# dotnet with Visual Studio




In this section i will create a small application . this application show only "Hellow world " into the console .

Steps:
  1. Start Microsoft Visual Studio 2008
  2. Click File>New>Project
You will see the following window.

3. Select Windows>Console Application   

4.Write appropriate name in ‘Name’ box, change the destination folder of the project directory by clicking the ‘Browse’ button  

5. Click OK button
6. Then you See The Code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WalkThrough1
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}



     7 . Then Write The following Code inside the Main Method :
             Console.WriteLine("Hello world");
               Console.ReadKey();
     8. Now Press F5 to Run This .
    9. Then You Can See The  Output in Black Screen .