New Digital Era
Back
Back to index...

Introduction to the VS environment

We'll see how to create a new project.
Open visual studio and click on Create a new project, then search for "Console App (.NET Core)". Make sure you select the C# template, not the Visual Basic template. Visual Basic is a dead language that is also built on top of the .NET framework.
Give it a name, for example "testproj1". You don't have to change Location and Solution Name unless you know what you are doing. Once it's done, you'll see this.
First we have to make an adjustment in the settings. For this, look at the right panel called Solution Explorer. Right click on "testproj1", or whatever you called your project and open Properties. Set Target Framework to .NET 5.0. If by the time you're reading this there a more recent version avaiable, you can probably select it as it's very unlikely it will introduce incompatibilities.
We'll use .NET 5 because it's a major step in the .NET environment. Before, there were several versions of the .NET framework, each focused on a certain target. There was .NET Framework, which was Windows-only and the first one, .NET Standard, which was a try to standarize the implementation over all implementations, and .NET Core, which was a cross-platform implementation of .NET . With the release of .NET 5, all these is unified and there is a single framework for all platforms and systems, which makes things simpler.

Now look at this: The * means that whatever file or window the tab contains is modified but has not yet been saved. Once you save the * will disappear from the tab name. Press ctrl+s or click the Save button to save and then close the configuration tab.

Delete all the pregenerated default code until the text editor is completely empty. Now we're ready to start programming.

Next
Back to index...