vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Cannot generate C# assets for build and debug

Open garym247 opened this issue 2 years ago • 2 comments

The following error is reported

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

I have tried uninstalling/installing the C# extension, also uninstalling/installing VS Code

garym247 avatar Jul 19 '22 21:07 garym247

@garym247 Can you please share the OmniSharp Log from the VS Code Output pane? As well as, the output from running dotnet --info from a terminal.

JoeRobich avatar Jul 19 '22 22:07 JoeRobich

Hi Joe,

Installing .Net6 and then restarting the Omnisharp sevice in VS Code managed to fix it.

garym247 avatar Jul 20 '22 16:07 garym247

I'm having this issue too. Installing the latest .NET 6 SDK and restarting OmniSharp did not fix it.

yoshiask avatar Nov 15 '22 18:11 yoshiask

I'm having this issue too. any suggestions to fix this ?

widada avatar Dec 08 '22 06:12 widada