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,Version=v4.6" were not found

See original GitHub issue

Environment data

dotnet --info output: VS Code version: C# Extension version:1.13.1

Steps to reproduce

  1. Use unity 2017.0.0f3 create a project
  2. Open unity menu “Edit/Project Settings/Player”
  3. Chose Scripting Runtime Version to “Experimental(.NET 4.6 Equivalent)”
  4. Restart unity and create any a C# script file.
  5. Open the C# file by vscode.
  6. OmniSharp Log will output this fail: [fail]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo The reference assemblies for framework ".NETFramework,Version=v4.6" 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.

[warn]: OmniSharp.MSBuild.MSBuildProjectSystem Failed to load project file 'e:\Workspace\CSharpTest\Assembly-CSharp.csproj'. e:\Workspace\CSharpTest\Assembly-CSharp.csproj

Expected behavior

Actual behavior

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
emanuelceballoscommented, Jun 18, 2018

I have a similar issue but running on Ubuntu 16.04. Is there a solution for VScode Linux based?

3reactions
DustinCampbellcommented, Feb 6, 2018

This is a duplicate of #1888. You might trying downloading and installing the .NET Framework 4.6 target pack from https://www.microsoft.com/en-us/download/details.aspx?id=48136.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The reference assemblies for framework ".NETFramework ...
NETFramework,Version=v4.6.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your ...
Read more >
MSB3644: The reference assemblies for 'version' were not ...
NET reference assemblies are not found for the version of .NET that a project requests. The issue could be that there is a...
Read more >
MSB3644 error, even though .NET of required version is ...
NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a ......
Read more >
[UE4]error MSB3644 .NETFramework,Version=v4.6.2 were ...
[UE4]error MSB3644 .NETFramework,Version=v4.6.2 were not found ... When compiling engine source of v4.22, .NET Framework 4.6.2 Developer Pack must ...
Read more >
Fixed – The reference assemblies for. NETFramework,Version ...
Fixed – The reference assemblies for. NETFramework,Version=v4.6.2 were not found. To resolve this, install the Developer Pack (SDK/Targeting ...
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