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.

.NETFramework not found in macOS

See original GitHub issue

Issue Description

I get this message in the output of VSCode

[fail]: OmniSharp.MSBuild.ProjectLoader
 The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. 
To resolve this, install the SDK or Targeting Pack for this framework version 
or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the
Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

Steps to Reproduce

Fresh macOS install, install the newest .NET SDK, install the newest VSCode with OmniSharp Start a Unity C# project

Expected Behavior

Actual Behavior

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.33.1 C# Extension: 1.19.1

Mono Information OmniSharp using built-in mono
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 2.2.106 Commit: aa79b139a8

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

Host (useful for support): Version: 2.2.4 Commit: f95848e524

.NET Core SDKs installed: 2.2.106 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
atom-keybindings ms-vscode 3.0.6
azure-account ms-vscode 0.8.3
change-case wmaurer 1.0.0
code-settings-sync Shan 3.2.9
code-spell-checker streetsidesoftware 1.7.10
csharp ms-vscode 1.19.1
csharpfixformat Leopotam 0.0.81
EditorConfig EditorConfig 0.13.0
gremlins nhoizey 0.9.0
ignore-gitignore stubailo 1.0.1
Material-theme zhuangtongfa 2.23.0
ruby rebornix 0.22.3
seti-icons qinjia 0.1.3
shaderlabvscodefree amlovey 1.1.3
tabsanity jedmao 0.0.11
terminal-tabs Tyriar 0.2.0
unity-code-snippets kleber-swf 1.3.0
unity-debug Unity 2.7.2
vscode-open-in-sourcetree morrislaptop 0.6.0
vscode-subword-navigation ow 1.2.0
vscode-todo-plus fabiospampinato 4.13.0
vscode-toggle-quotes BriteSnow 0.3.2
vscode-unitymeta PTD 0.0.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:42 (5 by maintainers)

github_iconTop GitHub Comments

168reactions
tomduncalfcommented, Aug 21, 2020

I fixed this by setting “Use global mono” to “always” in VS Code

image

9reactions
Ole-Skidoscommented, Aug 21, 2020

@tomduncalf I hope we meet one day so I can buy you a beer!, Tried everything for 4 hours and this did the final trick!

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET 5 not found in MacOS (Monterey) though it is installed
The issue seems to be that the only version available of .NET5 for Mac is x64, and there is no ARM64 version for...
Read more >
Install .NET on macOS - Microsoft Learn
In this article, you'll learn how to install .NET on macOS. .NET is made up of the runtime and the SDK. The runtime...
Read more >
VS for Mac 2019 (8.10.13 build 11) will not find .NET 6 SDK ...
Thanks for your feedback! Could you check your .NET version installation with dotnet --info command? If they are installed correctly, you can refer...
Read more >
Solve assemblies for .NET6 Framework were not found
NET6 Framework were not found that happens on visual studio 2019 for macOS. To solve this, make sure you have installed .
Read more >
.NET 6 and M1 problems when other SDKs are present in the ...
If you have M1 Apple device and both .NET 6 and .NET 5 (or .NET Core 3.1) SDKs installed on it, it means...
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