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.

Error: The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found

See original GitHub issue

Environment data

dotnet --info output: 2.2.1 VS Code version: C# Extension version: 1.17.1

Steps to reproduce

Try to use the Unity Debugger. Error gets thrown in VSCode

Expected behavior

No errors

Actual behavior

Errors on startup

The .NETFramework is not available on a Mac. I’m not sure if it is needed for this extension - if it is, the extension is useless on Mac. If it is not, there should be a check for the platform or something. Regardless, if I try to debug Unity, it crashes as soon as I hit play (Debug adapter process has terminated unexpectedly (spawn mono ENOENT)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

72reactions
bmschwartzcommented, Jun 13, 2020

Try adding export FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/Current to your ~/.bash_profile or ~/.zshrc or whichever terminal you use. Restart VSCode before trying again.

3reactions
marcinwaluscommented, Sep 20, 2020

Try adding export FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/Current to your ~/.bash_profile or ~/.zshrc or whichever terminal you use. Restart VSCode before trying again.

That worked for me too! Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference assemblies for framework ".NETFramework ...
If you're still encountering this Omnisharp error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found.
Read more >
[VS Code] Error: The reference assemblies for framework ...
The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. Intellisense (autocomplete) fix.
Read more >
Visual Studio Code for Unity: "The reference assemblies for ...
Visual Studio Code for Unity: "The reference assemblies for .NETFramework,Version=v4.7.1 were not found. ... " #4347.
Read more >
The reference assemblies for .NETFramework,Version=v4.5 ...
On a visual studio build task I get the following error: ##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Microsoft.
Read more >
MSB3644: The reference assemblies for 'version' were not ...
This error occurs when the .NET reference assemblies are not found for the version of .NET that a project requests. The issue could...
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