- Home /
Why is the default Scripting Runtime Version .NET 4.5 instead of 4.6?
Hi there,I checked this website and I had both vscode and unity2018.3.2f1 installed,but when I create a project,the TargetFrameworkVersion in Assembly-CSharp.csproj has been set to 4.5 instead of 4.6 which has been mentioned on this website,and there are some problems in my Omnisharp log which says:
[fail]: OmniSharp.MSBuild.ProjectLoader The reference assemblies for framework ".NETFramework,Version=v4.5" 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
and the code completion is not working.
When I set the TargetFrameworkVersion in Assembly-CSharp.csproj to 4.6 manually,the problems above are all gone.But when I reopen the script in Unity Editor,the version is reset to 4.5 again and the problems are back.
Is someone has the same problems? What can I do to solve this?_?
Comment