Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - C# Console Application

Possibly a repeat or very basic question...

I have recently downloaded Visual Studio Code on Windows and tried to open my existing "Hello World!!" console application.

I have downloaded the C# extension for the same.

Could you please point me to documentation where I can find step-by-step guide for configuring VS Code so that I can open existing console app and debug/ run the same.

Currently when I opened my existing C# project written using VS2013 and tried to debug/ run, it is not working. I'm getting following error. "The preLaunchTask 'build' terminated with exit code 1."

Or am I trying to do something which is not correct at all??

like image 332
A3006 Avatar asked Dec 11 '22 14:12

A3006


1 Answers

The Answer is NO

VS Code does not support debugging applications running on the Desktop .NET Framework.

VS Code is optimized for cross-platform .NET Core development Due to this focus, many standard C# project types are not recognized by VS Code.

A non-supported project type is an

  • ASP.NET MVC Application
  • Console application
  • WPF
  • Anything on Desktop .NET Framework.

VS Code supports debugging of C# applications running on either .NET Core or Mono

VS Code only supports a limited set of project types (primarily .NET Core). For full .NET project support, use Visual studio community

like image 200
Eldho Avatar answered Feb 01 '23 05:02

Eldho