Answer a question

On Visual Studio (VS) Code, coding on C#. I'm trying to generate assets to build and debug and I'm getting the following error message: Unable to generate assets to build and debug. OmniSharp server is not running.

I'm running:

  • .NET version 3.1.301
  • Windows 8.1
  • Visual Studio Code 1.46.1 (user setup)
  • Powershell 5.1

So far I've tried unistalling VS code and the C# extention, I updated the omnisharp.path to latest at settings.json and updated the powershell version.

The code I'm trying to generate the assets for build and debug does run, so I'm uncertain where else I should look for the source of the problem.

If you require any more details feel free to ask

Answers

Ended up discovering the issue. I needed to add a PATH variable to C:\Windows\System32 in the System Variables. Now it works as intended.

Adding the variable depends on your Windows version. You should be able to find guides on adding Paths to your Environment Variables. Here's Microsoft's guide.

As for which path variable you need to add it'll look something like: C:\Windows\System32\WindowsPowerShell\v.1.0

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐