用VSCode进行C#环境搭建:Unable to generate assets to build and debug. OmniSharp server is not runnin

於永寿
2023-12-01

[ VScode C# 调试]
报错:
Unable to generate assets to build and debug. OmniSharp server is not runnin

解决:

  • Step one open Visual Studio Code
  • Go to explorer or (Ctrl+Shift+E) to get there
  • Open your folder that you created that you try to get Omnisharp into
  • click on C# Program.cs, It should be the last one
  • Then go to View (U can skip this step if u going to (Ctrl+Shift+P))
  • Select Command Pattele or (Ctrl+Shift+P)
  • From there it should bring up a Search bar
  • Search for OmniSharp
  • Select "OmniSharp: Restart Omnisharp"
  • Then wait for it to restart or agree to it to restart then wait
  • Now then if u try to add what u going to add it should work 
  • Hope this helps

转载自 :
https://superuser.com/questions/1479967/vscode-unable-to-generate-assets-to-build-and-debug-omnisharp-server-is-not

 类似资料: