Introduction to Visual Studio

04 Sep, 2019
Visual Studio is an Integrated Development Environment(IDE) developed by Microsoft to develop GUI(Graphical User Interface), console, Web applications, web apps, mobile apps, cloud, and web services, etc. With the help of this IDE, you can create managed code as well as native code. It uses the various platforms of Microsoft software development software like Windows store, Microsoft Silverlight, and Windows API, etc. It is not a language-specific IDE as you can use this to write code in C#, C++, VB(Visual Basic), Python, JavaScript, and many more languages. It provides support for 36 different programming languages. It is available for Windows as well as for macOS.
Evolution of Visual Studio: The first version of VS(Visual Studio) was released in 1997, named as Visual Studio 97 having version number 5.0. The latest version of Visual Studio is 15.0 which was released on March 7, 2017. It is also termed as Visual Studio 2017. The supported .Net Framework Versions in latest Visual Studio is 3.5 to 4.7. Java was supported in old versions of Visual Studio but in the latest version doesn’t provide any support for Java language.
There are 3 editions of Microsoft Visual Studio as follows:
1. Community: It is a free version which is announced in 2014. All other editions are paid. This contains the features similar to Professional edition. Using this edition, any individual developer can develop their own free or paid apps like .Net applications, Web applications and many more. In an enterprise organization, this edition has some limitations. For example, if your organization have more than 250 PCs and having annual revenue greater than $1 Million(US Dollars) then you are not permitted to use this edition. In a non-enterprise organization, up to five users can use this edition. Its main purpose is to provide the Ecosystem(Access to thousands of extensions) and Languages(You can code in C#, VB, F#, C++, HTML, JavaScript, Python, etc.) support.
2. Professional: It is the commercial edition of Visual Studio. It comes in Visual Studio 2010 and later versions. It provides the support for XML and XSLT editing and includes the tool like Server Explorer and integration with Microsoft SQL Server. Microsoft provides a free trial of this edition and after the trial period, the user has to pay to continue using it. Its main purpose is to provide Flexibility(Professional developer tools for building any application type), Productivity(Powerful features such as CodeLens improve your team’s productivity), Collaboration(Agile project planning tools, charts, etc.) and Subscriber benefits like Microsoft software, plus Azure, Pluralsight, etc.
3. Enterprise: It is an integrated, end to end solution for teams of any size with the demanding quality and scale needs. Microsoft provides a 90-days free trial of this edition and after the trial period, the user has to pay to continue using it. The main benefit of this edition is that it is highly scalable and deliver high-quality software.
First, you have to download and install the Visual Studio. For that, you can refer to Downloading and Installing Visual Studio 2017. Don’t forget to select the .NET core workload during the installation of VS 2017. If you forget then you have to modify the installation.
You can see a number of tool windows when you will open the Visual Studio and start writing your first program as follows:Code Editor: Where the user will write code.Output Window: Here the Visual Studio shows the outputs, compiler warnings, error messages and debugging information.Solution Explorer: It shows the files on which the user is currently working.Properties: It will give additional information and context about the selected parts of the current project.
Code Editor: Where the user will write code.Output Window: Here the Visual Studio shows the outputs, compiler warnings, error messages and debugging information.Solution Explorer: It shows the files on which the user is currently working.Properties: It will give additional information and context about the selected parts of the current project.
Code Editor: Where the user will write code.
Output Window: Here the Visual Studio shows the outputs, compiler warnings, error messages and debugging information.
Solution Explorer: It shows the files on which the user is currently working.
Properties: It will give additional information and context about the selected parts of the current project.
A user can also add windows as per requirement by choosing them from View menu. In Visual Studio the tool windows are customizable as a user can add more windows, remove the existing open one or can move windows around to best suit.
Various Menus in Visual Studio: A user can find a lot of menus on the top screen of Visual Studio as shown belowCreate, Open and save projects commands are contained by File menu.Searching, Modifying, Refactoring code commands are contained by the Edit menu.View Menu is used to open the additional tool windows in Visual Studio.Project menu is used to add some files and dependencies in the project.To change the settings, add functionality to Visual Studio via extensions, and access various Visual Studio tools can be used by using Tools menu.
Create, Open and save projects commands are contained by File menu.Searching, Modifying, Refactoring code commands are contained by the Edit menu.View Menu is used to open the additional tool windows in Visual Studio.Project menu is used to add some files and dependencies in the project.To change the settings, add functionality to Visual Studio via extensions, and access various Visual Studio tools can be used by using Tools menu.
Create, Open and save projects commands are contained by File menu.
Searching, Modifying, Refactoring code commands are contained by the Edit menu.
View Menu is used to open the additional tool windows in Visual Studio.
Project menu is used to add some files and dependencies in the project.
To change the settings, add functionality to Visual Studio via extensions, and access various Visual Studio tools can be used by using Tools menu.
The below menu is known as the toolbar which provide the quick access to the most frequently used commands. You can add and remove the commands by going to View → Customize
Note:
Support for different programming languages in Visual Studio is added by using a special VSPackage which is known as Language Service.
When you will install the Visual Studio then the functionality which is coded as VSPackage will be available as Service.
Visual Studio IDE provides the three different types of services known as SVsSolution, SVsUIShell, and SVsShell.
SVsSolution service is used to provide the functionality to enumerate solutions and projects in Visual Studio.
SVsUIShell service is used to provide User Interface functionality like toolbars, tabs etc.
SvsShell service is used to deal with the registration of VSPackages.
cld543
CSharp-Basics
C#
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.