Vscode ... Unable to generate assets to build and debug. OmniSharp server is not running

0

I have a problem and searched over the internet and tried their solutions but nothing happend.

When i try to debug my code in VSCode , nothing happens. I found in Debug menu there is no configuration , but I already have installed C# extensions. then I tried the solution View > Command Palette > Generate Asset for Build and debug... I received this error "Unable to generate assets to build and debug. OmniSharp server is not running." So any help please? PS: Already downloaded the last version of mono because it was one of the solutions but didn't work either.

Ebrahim ElSayed

Posted 2019-09-07T12:13:12.933

Reputation: 1

Answers

0

Okay I fixed it.

  • Full uninstalled VSCode ( I had to delete some manually)
  • Installed Again
  • Installed C# Extension
  • Add a workspace [File > OpenFolder] (Important One)
  • [View > Command Pallete... > .NET: Generate Assets for Debug and Build]
  • DONE!! , Now you can see in Debug panel [Ctrl+Shift+D] Debug: .Net Core Launch(Console) , Instead of "No Configuration".

Ebrahim ElSayed

Posted 2019-09-07T12:13:12.933

Reputation: 1