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.

Failed to load project file (under macOS Catalina)

See original GitHub issue

Issue Description

I have an existing solution with about 7 projects inside. I’ve had no issues until lately with Omnisharp running so I can click around my functions to navigate between files. However this seems to have changed since macOS Catalina.

OmniSharp log

Post the output from Output-->OmniSharp log here
Failed to load project file '/Users/username/path/to/project/project.csproj'.
/Users/username/path/to/project.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The imported project "/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild/Current/Microsoft.Common.props" was not found. Also, tried to find "Current/Microsoft.Common.props" in the fallback search path(s) for $(MSBuildExtensionsPath) - "/Library/Frameworks/Mono.framework/External/xbuild/" . These search paths are defined in "/Users/username/.vscode/extensions/ms-vscode.csharp-1.21.7/.omnisharp/1.34.7/omnisharp/OmniSharp.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.  /usr/local/share/dotnet/sdk/2.2.402/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props

C# log

Post the output from Output-->C# here

None

Environment information

macOS version: 10.15.1 VSCode version: 1.40.1 C# Extension: 1.21.7

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

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

Host (useful for support): Version: 2.2.7 Commit: b1e29ae826

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

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.7 [/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
android-dev-ext adelphes 0.8.0
atom-keybindings ms-vscode 3.0.6
azure-account ms-vscode 0.8.7
bower donjayamanne 0.0.3
csharp ms-vscode 1.21.7
Csharp-ASPNETCore rahulsahay 1.11.0
debugger-for-chrome msjsdiag 4.12.1
electron-debug kodetech 18.11.1
gc-excelviewer GrapeCity 2.1.32
githistory donjayamanne 0.4.6
Go ms-vscode 0.11.9
Gradle cazzar09 1.1.2
html-snippets abusaidm 0.2.1
material-icon-theme PKief 3.9.1
mono-debug ms-vscode 0.15.8
mssql ms-mssql 1.7.0
node-debug2 ms-vscode 1.39.3
npm-intellisense christian-kohler 1.3.0
powershell ms-vscode 2019.11.0
prettify-json mohsen1 0.0.3
Theme-MaterialKit ms-vscode 0.1.4
useful-react-snippets igorming 1.5.4
vsc-material-theme Equinusocio 30.0.0
vscode-azureappservice ms-azuretools 0.16.1
vscode-npm fknop 3.3.0
vscode-npm-script eg2 0.3.9
vscode-react-native msjsdiag 0.13.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dombarnescommented, Nov 14, 2019

Found it.

"omnisharp.useGlobalMono": "auto",
"omnisharp.monoPath": "/usr/local/Cellar/mono/6.4.0.198",
2reactions
filipwcommented, Nov 14, 2019

please update mono 5.2.0 to 6.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why cant I open xcode projects in Catalina?
Open Xcode's startup screen (do not open any project yet) · Open Xcode -> Preferences -> Accounts -> Remove the Github account you...
Read more >
Workspace integrity, couldn't load project. After upgrading ...
The project compiled and run fine, but we could not get rid of the ugly "Workspace integrity, couldn't load project" error.
Read more >
Cant open project on macOS 10.15 : JBR-1721
I installed IntelliJ 2019.02 today. Unfortunately, since then I'm 100% unable to open any project that's not in the File -> Open Recent...
Read more >
How to Fix macOS Catalina Installation Issues - MacSales.com
The two primary causes are; attempting to install on a Mac that Catalina doesn't support, or trying to install Catalina on a Mac...
Read more >
Install GitLab Runner on macOS
routing configurations. FATAL: Failed to start gitlab-runner: "launchctl" failed with stderr: Load failed: 5: Input/output error on ...
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