Solution .Player project keeps losing reference to UnityEditor.dll

Hi there,

I’m using Visual Studio 2017, the solution explorer shows 23 projects,

(project name)

and

(project name).Player

I must admit, I’m not entirely sure what the .Player one is for, as I haven’t changed any code in it (which might be the problem). Every 10 or so compiles, the .Player project loses its reference to UnityEditor.dll, causing compilation to fail, and forcing me to add the reference back. I’m sure it’s not down to the number of compiles, probably more due to what I’m doing in Unity that breaks it, which I’m unaware of.

Any idea why this is happening? It’s pretty annoying.

What’s causing this project to be regenerated with the incorrect references and how to fix it? Thanks in advance for any help.

Nick.

1 Like

Any ideas on this? I don’t know if this will bump the message up, but I’m trying anyway.

Also on the hunt to even try to understand what (projectname).Player is in my solutions, as it seems to double my load time in VS, and other programmers on my project dont have this.

Writing as an answer in hope it bumps… and someone knows

I am seeing this problem today in Unity 2023.2.x and Visual Studio 17.11.2.

Did anyone figure out what the “.Player” duplicates for all the assemblies are doing in the Solution Explorer of Visual Studio?

These types of issues creep up way too often in Unity and are major time and productivity killers.