Cannot build with Assembly Definition Files

I added lots of Playmode tests, which required me to add assembly definition files.
I also placed an assembly definition file for my Scripts folder.
If I try to build, I get errors for every Editor script in my project.

Even my plugsin like Obirope - Bakery -Dotween- Ludiq. They all throw errors about their corresponding editor folders unless I drag their editor folder into the root directory.

If I delete my assembly definition files and tests, only then can I build my project.

I can recreate this in a new project using these steps.

  1. Create a folder called scripts.
  2. Create an assembly def file in that folder.

3.Create a plugins folder
4.Drop any plugins with an Editor folder and editor scripts in that folder or create your own.

Build the project. All scripts with editor related code will throw an error.

bump