Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to properly change scripting runtime version to .NET 4.x equivalent? (Unity 2018.1)

Discussion in 'Scripting' started by dkstrong, May 5, 2018.

  1. dkstrong

    dkstrong

    Joined:
    Aug 17, 2013
    Posts:
    16
    I just downloaded Unity 2018.1 and I am trying to use ".NET 4.x equivalent" instead of ".NET 3.x. equivalent"

    When I switch it to ".NET 4.x equivalent" in the Player Settings, I get this error inside of VSCODE:


    [fail]: OmniSharp.MSBuild.ProjectLoader
    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.


    How do I properly install / target .NET 4.x for unity?
     
  2. Nullmind

    Nullmind

    Joined:
    Sep 29, 2015
    Posts:
    25