unity-shell icon indicating copy to clipboard operation
unity-shell copied to clipboard

'CompilerContext' is inaccessible due to its protection level in Unity 2020.1.2f1

Open omundy opened this issue 3 years ago • 1 comments

I installed (dragged into Assets) in Unity 2020.1.2f1 and received the following errors

Assets/UnityShell/Editor/Scripts/ShellEvaluator.cs(27,34): error CS0122: 'CompilerContext' is inaccessible due to its protection level

Assets/UnityShell/Editor/Scripts/ShellEvaluator.cs(27,54): error CS0122: 'CompilerSettings' is inaccessible due to its protection level

Assets/UnityShell/Editor/Scripts/ShellEvaluator.cs(27,78): error CS0122: 'ConsoleReportPrinter' is inaccessible due to its protection level

Assets/UnityShell/Editor/Scripts/ShellEvaluator.cs(27,20): error CS1729: 'Evaluator' does not contain a constructor that takes 1 arguments

image

omundy avatar Sep 22 '20 01:09 omundy

I use 2020.3.25f1 :

  1. I use the original 4.x.dll.
  2. Delete the 3.5.dll for ambiguous reference.
  3. Select the 4.x.dll and Set "platforms for plugins" for all platforms.
  4. Then it should work.

iamabigartist avatar Dec 25 '21 05:12 iamabigartist