Is there a way to prevent this weird project and solution generation done by Unity when using asmdef files?
Can someone please help me with this? It's making it near impossible to use Unity with VS.
There also is no noticeable pattern in when it happens, ie can happen when creating, saving, or loading a file. It can even just happen at random times such as when I'm AFK and have Unity/VS open. StackOverflow Link
Does this happen when Editor Attaching is not enabled? Also, read this thread, which speaks of the need to link references and define Editor Assemblies. Perhaps if its not linked it may be seen as separate and the reason why VS is trying to throw it in to a new project.
I have tried with Editor Attaching enabled and disabled, it makes no difference. Also, everything is defined and linked perfectly. It works fine 95% of the time and the project can always build even if this happens, it's just annoying when it does.
I have also switched over the VS Code as it doesn't use the csproj/sln
files.
Sorry this link wont solve it but helps outline the issue. It seems to be more VS related than Unity. I'm guessing it seems random because of the way your Focused/Backgrounded programs respond. The example is Unity not recompiling code until you click the window. Perhaps VS is the same in that its not showing you what its doing until its given some priority making it hard to track down the Root. Do you have an Editor folder inside your Assets folder or something strange like that?
Your answer
Follow this Question
Related Questions
unity visual studios not working properly 0 Answers
Open C# Project Opens Windows Explorer 0 Answers
Visual Studio can't reference to Firstpass assembly 4 Answers
Unity 5+ compatibility with VS2012 - ? 0 Answers