

Your console window should look similar to the following screenshot: Select the green Start button next to CalculateThis to run your program. In Program.vb, enter the following code between the Module Program line and End Module line: Public num1 As Integer NET 6.0 should already be selected for your target framework. Next, choose Windows from the Platform list and Console from the Project types list. In the Create a new project window, choose Visual Basic from the Language list. Your code window should look like the following screenshot:Ĭlick CalculateThis to run your program. Then, choose Create.Įnter the following code between the Module Program line and End Module line: Public num1 As IntegerĬonsole.WriteLine("Type a number and press Enter")Ĭonsole.WriteLine("Type another number to add to it and press Enter")Ĭonsole.WriteLine("The answer is " & answer) NET Core 3.1 should already be selected for your target framework. Then, in the Configure your new project window, type or enter CalculateThis in the Project name box. Next, choose Windows from the Platform list and Console from the project types list.Īfter you apply the language, platform, and project type filters, choose the Console Application template, and then choose Next.

On the start window, choose Create a new project. NET Core cross-platform development workload, and then choose Modify.Ĭancel out of the New Project dialog box and from the top menu bar, choose Tools > Get Tools and Features. Option 1: Use the New Project dialog boxĬlick the Open Visual Studio Installer link in the left pane of the New Project dialog box. You can add this workload in one of the two following ways, depending on which Visual Studio 2017 updates are installed on your machine. NET Core cross-platform development workload. If you don't see the Console App (.NET Core) project template, you can get it by adding the. In the middle pane, choose Console App (.NET Core). In the New Project dialog box in the left pane, expand Visual Basic, and then choose. From the top menu bar, choose File > New > Project.
