Introduction
In today’s article we will look at how to run an application built in Visual Studio 2019 in Visual Studio Code. Visual Studio Code is a free, open source, lightweight development IDE which can be used across platforms including Windows, Linux, and Mac OS. In the case that we have an application that has already been built using Visual Studio and we want to run this from Visual Studio Code, there are a few steps that need to be done. We will look at these steps in this article.
Downloading Visual Studio Code
In case you need to download Visual Studio Code, you can do so from the below URL,
https://code.visualstudio.com/download
Here you will see the downloads for different operating systems as below,

The Visual Studio Application
The Visual Studio application we will be using for this article is a simple console application built using the .NET framework 4.7.2. It has been built using Visual Studio 2019 Community Edition, which is also a free version of Visual Studio. The application is a quite simple one which simply writes a line of output to the console as below,

Running the application generates the below output,

Running the solution from Visual Studio Code
To run this application from Visual Studio Code, we need to complete the below steps,
- Create a “.vscode” folder at the solution level
- Create a “Tasks.json” file
- Create a “launch.json” file
The first step is straight-forward. We will look at the second step in which we will create a “Tasks.json” file. This file looks as the below,
- {
- "version": "2.0.0",
- "tasks": [
- {
- "label": "build",
- "command": "dotnet",
- "type": "process",
- "args": [ "build" ],
- "options": {
- "cwd": "${workspaceFolder}"
- },
- "problemMatcher": "$tsc"
- }
- ]
- }



selamn sanalPosted Sep 27, 2022, 10:06 AM
I can't follow up , pictures realy bad
Munib ButtPosted Aug 16, 2022, 7:49 PM
Yes. You can use the vscode-solutions-explorer.
JonathanPosted Aug 16, 2022, 5:16 PM
Followed to the end, and when it didn't work realized that at the VERY end you mention having installed an extension named ambiguously "Visual Studio solutions extensions" Searching for that string in the extensions marketplace doesn't pick up anything like that. Is this the vscode-solutions-explorer? Seems to be the only thing that comes close. Also the pictures are small and blurry.