question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OmniSharp doesn't recognize mscorlib namespaces for a buildable project

See original GitHub issue

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.3)

Product Information:
 Version:            2.1.3
 Commit SHA-1 hash:  a0ca411ca5

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.1.3/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.4
  Build    : 7f262f453d8c8479b9af91d34c013b3aa05bc1ff
  • VSCode Version: Code 1.19.3 (7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba, 2018-01-25T10:25:01.248Z)
  • OS Version: Darwin x64 17.4.0
  • Extensions:
Extension Author (truncated) Version
csharp ms- 1.13.1

Steps to reproduce

Have a project. Build it successfully with dotnet build. Open it in VSCode.

Expected behavior

OmniSharp does its job.

Actual behavior

Lots of errors like this: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
barcexwikicommented, Feb 25, 2018

I have the same problem. I had to roll back from 1.14.0 to 1.13.1 to get it fixed.

0reactions
cartermpcommented, Sep 22, 2020

This doesn’t reproduce (TargetFrameworks with a single TFM) anymore on the latest version of the plugin for me. So I’ll close this out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Omnisharp not showing custom namespaces - Stack Overflow
1 Answer 1 · Close Visual Studio · Go to Edit < Preferences < External Tools in unity · In External Tools uncheck...
Read more >
[Solved] Problems with OmniSharp and Visual Studio Code
After the update, OmniSharp fails to validate the Unity project files and the editor refuses to initialize IntelliSense.
Read more >
OmniSharp - .NET and IntelliSense on any platform with your ...
OmniSharp is a set of tooling, editor integrations and libraries that together create an ecosystem that allows you to have a great programming...
Read more >
Problem with missing assembly reference when using Visual ...
The error says "the type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?)".
Read more >
Hidden features of OmniSharp and C# extension for VS Code
When we build things into OmniSharp, we typically try to keep ... for project specific settings, use omnisharp.json at the root of your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found