Test the .Net CLI
If you followed the directions for Installing Visual Studio in the previous module, “Prepare the environment“, you should have the .Net CLI (Command Line Interface) ready to go.
Check the version of .Net
Let’s test it out by checking which version of .Net we are using. Open up an instance of PowerShell or a command line and type the following command.
dotnet --version
The latest version of dotnet you have will be displayed.

You can see in the screenshot above I am using version 7.X at the time of this writing.
Create the solution
In File Explorer create a folder called, “C:\Development\FredsCars\FullStack\Module04”.
At the command line navigate to the new folder by typing the following command.
cd C:\Development\FredsCars\FullStack\Module04
Now type the following command to create the Visual Studio solution file.
dotnet new sln -n FredsCars
In the above command we are using the dotnet new command to create a new Visual Studio solution file and the -n parameter with the value “FredsCars” to create a file named “FredsCars.sln” as shown in the following screen shot.

Open the Solution in Visual Studio 2022
To open the solution in Visual Studio, right click the FredsCars.sln file and select “Open with -> Microsoft Visual Studio 2022”.

Visual Studio will then open and you can see the newly created FredsCars solution in the Solution Explorer with 0 projects.

What’s Next
Now that we have our new FredsCars solution, in the next two modules we will add the ASP.Net Core Web API
and Standalone Typescript Angular project
projects to the solution.