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
59
votes
18 answers

OmniSharp.MSBuild.ProjectManager Attempted to update project that is not loaded:

I started to develop Asp.net Core web API with the VS code. But when I typing the code Intellisense/Suggestions not working properly. I saw in some resource on the internet while they are typing using Microsoft., EntityFrameworkCore showing as a…
59
votes
9 answers

Error in Visual Studio Code Dotnet Core C#: "The type or namespace name 'System' could not be found", but build succeeds

When trying to work with Visual Studio Code on a C# DotNet Core MVC application, I am having a lot of trouble getting visual studio code to work. It is having trouble finding anything related to C#, marking even 'Using System;' as invalid, saying it…
MStudley
  • 685
  • 1
  • 5
  • 7
43
votes
9 answers

Reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found

I try to open a Unity3D project with VSCode under Linux (Ubuntu 18.10). The omnisharp extension doesn't load the project, saying assemblies were not found. It may seems very stupide, but i'm not really used to .Net yet, and i have been stuck with…
Eyap
  • 754
  • 1
  • 7
  • 22
28
votes
5 answers

OmniSharp Error: Found dotnet version 5.0.201. Minimum required version is 6.0.100

I use VS Code as my IDE. Today I saw in my C# files that I could no longer use things like "Go To Definition/Implementations" or hover over anything to get the path/type etc. I found my Omnisharp console and saw they updated last night and there is…
MambaForever
  • 359
  • 3
  • 11
27
votes
5 answers

Setting C# formatting options for OmniSharp on Visual Studio Code?

I'm attempting to take advantage of the integration with Visual Studio Code, but can't figure out how to set the C# formatting options. The config.json right next to the OmniSharp exe on my Mac (/Applications/Visual Studio…
csells
  • 2,453
  • 1
  • 20
  • 18
24
votes
1 answer

Is there an example project for monaco-editor with omnisharp on a webpage

In my project, I use C# Roslyn scripts for some automation that can my customer write alone. I compile and run this on runtime. Now I would like to have a web editor for c# with intellisense and spell check. For code completion, I would like also to…
Chape Hans
  • 241
  • 1
  • 5
21
votes
8 answers

Visual Studio Code Breakpoint warning: The source code is different from the original version

I'm very new to Visual Studio Code. I'm trying to debug an application that exists already that I've cloned via Git. None of my files are modified yet. I've downloaded the microsoft extension "C# for Visual Studio Code (powered by OmniSharp)". The…
Sniipe
  • 1,116
  • 3
  • 13
  • 28
20
votes
11 answers

vs code Problems with C# extension, Some projects have trouble loading due to OmniSharp

When I start editing a C# file I get this warning message Some projects have trouble loading. Please review the output for more details. I check the output and this is what I find Starting OmniSharp server at 2/17/2021, 6:06:51 AM Target:…
Zeyad Shaban
  • 896
  • 1
  • 8
  • 23
19
votes
11 answers

The SDK 'Microsoft.NET.Sdk.Web' specified could not be found in VSCode OmniSharp extension

I've installed dotnet core 3 sdk and OmniSharp 1.18 extension on VSCode but OmniSharp has an error: Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.
arsmn
  • 451
  • 2
  • 7
  • 12
16
votes
12 answers

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

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…
pav.anastas
  • 191
  • 1
  • 1
  • 10
15
votes
2 answers

"Predefined type 'System.*' is not defined or imported" Error, visual studio code, omnisharp

I'm having an issue with the mentioned error in several .net core applications. I'm using vs code version 1.18.0 but the error started to appear already in the previous version. The error appears in every .cs file for every datatype like string,…
Jurij B
  • 301
  • 1
  • 2
  • 10
14
votes
2 answers

OmniSharp in VSCode very slow

I'm not sure what happened but all of a sudden OmniSharp has become very slow in VSCode. Sometimes the autocomplete works immediately sometimes it takes minutes, same for jumping to definitions and the like. If I disable OmniSharp autocomplete…
meds
  • 21,699
  • 37
  • 163
  • 314
13
votes
10 answers

C# - VS Code - launch:program ... does not exist

I am trying to debug a simple "Hello world" application in VS Code, however, when I press Ctrl + F5, it gives me the following error: If I manually change the path in launch.json…
RollerMobster
  • 864
  • 1
  • 10
  • 28
13
votes
4 answers

Visual Studio Code Intellisense stopped to work on C# files

I realized that I can't use ctrl + . shortcut to import other C# classes. This shortcut works just fine for other file types like typescript. I have uninstalled and installed back again. I also installed old version of VS code too. But nothing…
GoGo
  • 2,727
  • 5
  • 22
  • 34
13
votes
2 answers

Automatically add NuGet dependencies and using statements in Visual Studio Code?

I am using Visual Studio Code to develop an ASP.NET 5 application on Mac. In order to use new classes (framework or third-party) in my .cs file, I need to Manually add a NuGet dependency in project.json and then Manually add a using statement to…
Nikolai Samteladze
  • 7,699
  • 6
  • 44
  • 70
1
2 3
20 21