- Home /
UnityVS: "This document is opened by another project" when reloading solution
This has always bugged me in UnityVS. A lot of times it happens when VS asks me to reload the solution because I added new source code files in Unity, I get a message that asks me whether I want to "reload all", "reload", "ignore" or "ignore all"
Of course I have to go with "reload all" otherwise VS won't pickup the files I added. When I do that, 80% of the times I get the message "This document is opened by another project" with an "OK" option.
This is an issue, if I just click OK and move on, things could go wrong; you end up editing 'copies' of files in VS, you write and write and then wonder why isn't your code running/working (example). Whenever I get this message I always restart visual studio to avoid this problem. Very inconvenient indeed.
Am I alone here? what is the solution here?
I reported this a while ago to JB Evains but it seems the issue still stands.
I have not had that problem with UnityVS, it usually works fine when I hit Reload All. You can avoid the need to Reload All though by creating the script files with the Unity Project Explorer in Visual Studio.
This of course does not solve the issue if you are importing new files or copying files or such.
No, sorry. $$anonymous$$y issue with UnityVS is usually that it has a tendency to lose connection to Unity so debugging stops working.
[Edit: This comment should go after the first one] Thanks for your input. So you never once got the message in the title?