needle-tools / needle-console

⚡ Improved Unity Console adding better log and stacktrace readability, log filtering, log hyperlinks and more
86 stars 7 forks source link

Compilation errors in Unity 6 #27

Open laicasaane opened 6 days ago

laicasaane commented 6 days ago

Steps to reproduce:

  1. Create a new project with Unity 6000.0.27f1
  2. Platform is Windows
  3. Install the latest version of Needle Console via OpenUPM
  4. In Project Settings > Player, set Editor Assemblies Compatibility Level to .NET Standard

image

Expected result:

No compilation error.

Actual result:

Multiple compilation errors:

Library\PackageCache\com.needle.console\Editor\CustomConsole\Patch_ConsoleWindowListView.cs(36,44):
error CS7069: Reference to type 'LocalBuilder' claims it is defined in 'mscorlib', but it could not be found
Library\PackageCache\com.needle.console\Editor\CustomConsole\Patch_ConsoleWindowListView.cs(59,12):
error CS7069: Reference to type 'Label' claims it is defined in 'mscorlib', but it could not be found
Library\PackageCache\com.needle.console\Editor\CustomConsole\Patch_ConsoleWindowListView.cs(59,23):
error CS1503: Argument 1: cannot convert from 'System.Reflection.Emit.Label [C:\Programs\Unity\Hub\Editor\6000.0.27f1\Editor\Data\NetStandard\ref\2.1.0\netstandard.dll]'
to 'System.Reflection.Emit.Label [C:\Programs\Unity\Hub\Editor\6000.0.27f1\Editor\Data\NetStandard\compat\2.1.0\shims\netfx\mscorlib.dll]'