Cannot build player because of "The name 'ExecuteEvents' does not exist in the current context"

Hello,

I can’t build my game due to these errors (I have 79 errors all looking like this one) :

E:\Programmes\2020.2.7f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\InputModules\TouchInputModule.cs(41,21): error CS0103: The name 'ExecuteEvents' does not exist in the current context

I don’t know how to fix this.

Note that :

  • I use Unity 2020.2.7f1
  • I want to build for Windows1 0
  • I use the new input system

I found the solution myself :

I reimported all the assets but Unity has removed the new Input System package. I reimported it and all works fine !