Questions tagged [omnisharp]

OmniSharp provides refactoring and AST support for the C# language for a variety of plugins written for popular text editors, including Vim, Emacs, Atom, Sublime Text, VS Code, and Brackets.

OmniSharp is a family of Open Source projects, each with one goal - To enable great .NET development in YOUR editor of choice. ~ omnisharp.net)

Background

OmniSharp Server, a project started by Jason Imison was written with the intention of providing refactoring and AST support for the C# language for Vim and later Emacs. Initially it was intended for own use, but grew in popularity and has had wide adoption in the game development community and developers writing C# on non Microsoft platforms.

Support has since been extended by the community to include Atom, Sublime Text and Brackets. OmniSharp has grown to be an umbrella term referring to the server and all plugins.

Today OmniSharp offers a lightweight alternative to traditional IDE's for developers wishing to write in their favourite editors. Offering code completion, formatting and other popular refactoring operations, syntax checking and easy code navigation.

309 questions
0
votes
1 answer

Visual studio Autocomplete for Unity does not work

Visual Studio Code with Unity I have installed VS code and Unity on a MacBook Air with M1. My unity version is: Unity 2021.3.4.f1 Silicon LTS. I have set external tools in unity to work with visual studio. Things I have installed: homebrew and…
Alvaro
  • 21
  • 1
  • 5
0
votes
3 answers

VSCode intellisense with Unity not working

Note this is on my desktop; I started a little side project in unity several weeks ago, and intellisense was working just fine. It had been working since I switched my unity code editor to VSCode long before I started this project. I went to work on…
0
votes
0 answers

Error occurred in loading omnisharp from omnisharp.path Could not start the server due to Error: Invalid OmniSharp version - omnisharp.path:latest

I have a problem. I downloaded the netcore project with version 3.1.101, but I am getting an error like this. None of the solutions I tried on the internet worked.
alperoz
  • 1
  • 1
0
votes
1 answer

OmniSharp not supporting unity anymore

So I recently started my final year project in Unity, for the code I use visual studio code, but the problem is that i installed the c# extension from omnisharp and it says that it doesn t support unity anymore or something like that. It doesn t…
0
votes
0 answers

Build old Csproj with Visual Studio code

I have an old project, created with Visual Studio 2008. This is the header of the .csproj file. At this moment I'm able to build with…
0
votes
1 answer

Couldnt locate MSBuild instance to register with OmniSharp after new Unity project

Could someone help me? Im a unity developer and after creating a new project im greeted with this: Starting OmniSharp server at 3.5.2022, 20:37:56 Target: c:\Users\Moris\Unity Projects\The Millon Dollar Idea\The Millon Dollar Idea.sln OmniSharp…
user19026933
0
votes
0 answers

My Visual Studio Code can't catch simple obvious errors

I am very new to Visual Studio Code and C#, and struggling that VS can't even catch a simple errors such as typos or random stuff. I already downloaded many recommended extensions, and I think I am missing something very important. Looking forward…
0
votes
1 answer

VSCode Codeactions not working on Apple M1

I've created a new Web-API project and referenced a newly created class library with the dotnet cli. Both projects are included in the solution. I've installed the Apple Sillicon version of VSCode (1.64.2) along with the arm64 Dotnet-Sdk…
frank
  • 1,217
  • 2
  • 10
  • 18
0
votes
1 answer

VS code: tell omnisharp which project/solution to work on

I have a workspace with several unrelated folders in it. I don't get any C# code checks (errors marked red and such). I followed this and checked the output of the OmniSharp log which only contained info about the topmost project in my workspace.…
Kjara
  • 2,504
  • 15
  • 42
0
votes
1 answer

VS Code Omnisharp intellisense does not work

I have the following setup: VS Code version 1.63.2 Omnisharp version 1.23.17 Recently, I started a new .NET Core 6 api project. The problem I am having is that VS Code does not offer any intellisense nor it recognizes any classes when I try to go…
dpdragnev
  • 2,011
  • 2
  • 28
  • 55
0
votes
1 answer

It was not possible to find any installed .NET SDKs

I have installed multiple versions of .NET Sdk.Now the Omnisharp suggestions is not working fine. output shows these [info]: OmniSharp.MSBuild.ProjectManager Loading project:…
hanushi
  • 1,169
  • 2
  • 12
  • 27
0
votes
1 answer

Omnisharp not showing custom namespaces

I am trying to reference a custom namespace (a non-NET namespace) for the Unity editor. However, the syntax highlighting is different from .NET namespaces and the classes inside the Unity namespace aren't shown in the intellisense. Oddly enough, a…
0
votes
2 answers

Project works in Visual Studio. But vscode + Omnisharp fails with "You need to specify platform (x86, Win32 or x64)" for Nuget pkg: ScreenRecorderLib

I have C# .Net Framework Winforms project that I've created in Visual Studio. In Visual Studio, everything is fine, it compiles, debugs, runs etc. But when I try to work on my project in vscode with the Omnisharp extension, Omnisharp can't even…
LaVache
  • 2,372
  • 3
  • 24
  • 38
0
votes
0 answers

Warning messages like error messages in VSCode with c#

Warning messages such as "Variable 'e' is declared but never used" may not allow the solution to compile, in visual studio code with c#. Force developers to create cleaner code. It's possible?
0
votes
1 answer

VS-Code: OmniSharp Language Server is running, but no auto-suggestions show up (C#)

I am working with VS-Code. I installed the C# extension, which includes OmniSharp and created a simple dotnet console project via command line with dotnet new console. The little flame in the left buttom corner of VS-Code says, "OmniSharp Server is…
ToubyBl
  • 11
  • 3