308 questions
1
vote
0
answers
206
views
OmniSharp of VS Code is compiling bin. and obj. files
I'm having this problem with the Visual Studio Code's compiler. It keeps on compiling the obj. and bin. files which it's not supposed to because then it's throwing error messages and doesn't work for ...
0
votes
0
answers
55
views
How to exclude folders for C# (omnisharp) in VSCode
During development I sometimes end up with loads of comments/notes/findings that I made that are useful to me but would not be helpful to others.
Before I get the code ready for commit I copy these ...
0
votes
1
answer
1k
views
VScode Error: Unable to get working directory for project Miscellaneous Files - file RunTestsHandler.cs line 124
I am currently working with VSCode on Windows. I have one folder opened in my workspace which contains several projects. Since we build the projects for net8.0 AND net481, I use the setting "...
3
votes
2
answers
7k
views
How do I activate the C# Omnisharp server in VSCode for .NET development? Currently, in VSCode for C#, IntelliSense isn't working
I started working on a .NET project in VSCode from WSL, and I have installed all the necessary extensions, including C# and the C# development kit. However, in my .NET code, I'm not seeing any ...
4
votes
0
answers
1k
views
Neovim - Getting `Cursor position outside buffer` when trying to go to definition on an external library in C# .NET
Operating system/version
Linux Ubuntu 22
Terminal/GUI
GNOME Terminal
AstroNvim Health
astronvim: require("astronvim.health").check()
AstroNvim ~
- AstroNvim Version: unknown
- Neovim ...
0
votes
1
answer
266
views
Autocompletion using CompletionItem.InsertText instead of CompletionItem.Label in Omnisharp VSSCode?
I'm trying to write an extension for VSCode with an auto-completion service, using the OmniSharp.Extensions.LanguageServer nuget package. I want to insert code snippets when the user selects a ...
0
votes
0
answers
270
views
How set C# omnisharp.json and .editorconfig in VScode?
3 month ago, I set "NewLinesForBracesInAccessors": false, in omnisharp.json. It can be solved.
But today, I update VScode and C# expansion. omnisharp.json it can't solve.
I want to set "...
1
vote
0
answers
342
views
C# For Visual Studio Code - Acting as if not installed
I had installed the C# extension for Visual Studio Code for Microsoft. Everything was working fine for the longest time with getting intellisense, using OmniSharp commands. I installed another ...
0
votes
1
answer
137
views
Is there a way to exclude infos from the problems count in Visual Studio Code
The problems tab in my Visual Studio Code installation has recently started showing a huge amount of "infos".
I have no idea why it started doing this now. find it really distracting as ...
1
vote
0
answers
482
views
Omnisharp 1.25.7 and VScode formatting error .razor files
On my mac m1, when I try to auto format .razor files, Omnisharp throws the following error:
[Error - 16:20:32] Request textDocument/formatting failed.
Message: Specified argument was out of the range ...
3
votes
1
answer
10k
views
Omnisharp C# LSP with Neovim on Windows
As the title says I need help with setting up C# LSP with Omnisharp. I have already installed the latest version. I downloaded omnisharp-win-x64.zip from the releases page and extracted it to a custom ...
0
votes
1
answer
726
views
.NET not finding choco-installed Developer Pack reference assemblies
I've setup Unity for VSCode, but Omnisharp Log is showing
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1217,5):
Error: The ...
1
vote
0
answers
67
views
Omnisharp server does not start with vs-code in a virtual workspace
I have already posted the question on github Issue, but unfortunately did not receive an answer.
I would like to use Omnisharp with VS-Code to enable intellisense in a virtual workspace (files are ...
3
votes
1
answer
2k
views
VSCode Omnisharp is not working and code action is not available
Hello all: I am having issue getting omnisharp to work on vs code. it seems to load without any error messages but as soon as I click on an underlined code error appears as below:
{
"Type":...
0
votes
0
answers
217
views
OmniSharp IntelliSense doesn't work in Visual Studio Code (Unity)
I was trying to set up VS Code to work with Unity for IntelliSense. I followed the instructions but OmniSharp seems to be misbehaving.
Starting OmniSharp server at 1/21/2023, 4:57:42 PM Target: c:\...
1
vote
1
answer
2k
views
OmniSharp Partially Fails After Returning "No Symbol Found"
On Windows 10, I am trying to get C# v1.25.2 via OmniSharp working for Unity 2021.3.16f1. However, when I try to run Visual Studio Code, OmniSharp returns an error saying there was "No Symbol ...
0
votes
1
answer
167
views
System.BadImageFormatException Error on VS Code Startup
I am in the process of getting everything I need to start learning C# and I've run into an issue. I am trying to use VS code as my editor but the IntelliSense isn't working. I think it's because ...
4
votes
4
answers
7k
views
VSCode Omnisharp server A .NET 6 SDK for x86_64 was not found
Omnisharp does not seem to recognize my installed .NET sdk (version 6.0.408).
I have tried manually adding this path via settings to Omnisharp: SDK path i.e.:
C:\Program Files\dotnet\sdk\6.0.403
I ...
0
votes
2
answers
552
views
Omnisharp is not loading for a Godot Engine Project
I'm trying to use C# in the Godot engine and Omnisharp is not cooperating. When I load the solution in Visual Studio Code I get the following error:
Target: c:\Users\riley\Documents\Glasses\...
0
votes
2
answers
283
views
C# (Visual Studio IDE / VSCode) - how to hide .NET types
When I begin to write type Visual Studio IDE and VSCode show not only the C# types but .Net types also (i.e: int - Int16, byte - Byte):
Is it possible to hide .Net type intelliSense?
1
vote
2
answers
575
views
Unity intellisense in VScode not working and Omnisharp is giving multiple errors and warnings
So, I'm kind of new to coding. I'm making a game in Unity and I just got to scripting. Unfortunately, VScode is not working with me. I've installed the latest C# extension in VScode and .NET version ...
1
vote
6
answers
4k
views
Omnisharp vscode - Unhandled exception. System.BadImageFormatException: Could not load file or assembly
I've been having a hard time running dotnet commands on an existing dotnet 6 application, on my m1 mac. I seem to have made it worse by downloading the dotnet SDK 6.0.401 in arm64 version, which has ...
0
votes
1
answer
375
views
Where and how to include Using directives in C# and .NET6?
I am programming C# in Visual Studio Code with .NET 6. In .NET 6, an explicit main method is no longer necessary. Does anyone know how and where to include using directives like using System....
1
vote
1
answer
15k
views
Set up c# language server (omnisharp) for neovim to develop app with .NET Core 5.0.17
I been battling to set up a C# language server (omnisharp) for neovim. The main problem is that I gotta use .NET Core 5.0.17 and omnisharp no longer ships with mono and MSBuild tools (mentioned in ...
0
votes
1
answer
1k
views
[fail]: OmniSharp.MSBuild.ProjectLoader
I want to learn how to code in C# using Visual Studio Code.
But when I open my project or restart OmniSharp, I will get a notification saying:
Some projects have trouble loading. Please review the ...