VSCode + C# (OmiSharp) not showing any errors

后端 未结 6 1174
野性不改
野性不改 2021-01-19 07:44

I\'m trying to find out why i\'m not getting any help by omisharp in my visual studio code.

I\'ve tried reinstalling both application and my extensions and i\'m sti

6条回答
  •  再見小時候
    2021-01-19 08:46

    OmniSharp works on the solution file. If the project is not added to a solution, then you will not see the errors.

    Add project to the solution:

    $ dotnet sln add SampleProject/SampleProject.csproj
    

    Restart OmniSharp:

    Press CTRL + SHIFT + P and select Omnisharp: Restart OmniSharp.

提交回复
热议问题