Error building Player: Currently selected scripting backend (Mono) is not installed

I found the solution to this problem in a different thread: Unity 2021.2: Dedicated Server target and stripping optimizations now live! Please share feedback! page-2#post-8048777