.NETFramework not found in macOS
See original GitHub issueIssue 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
C# log
Environment information
VSCode version: 1.33.1 C# Extension: 1.19.1
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.106 Commit: aa79b139a8Runtime 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:
- Created 4 years ago
- Comments:42 (5 by maintainers)
Top GitHub Comments
I fixed this by setting “Use global mono” to “always” in VS Code
@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!