Hi all,
This one has me going around in circles so any help would be really appreciated.
Up until recently, perhaps within the last week, I could create a new C# script within Unity and, with Visual Studio already open, the new script would appear within the solution/project within Visual Studio.
At this current time, this is not the case. If I create a new C# script in Unity, it doesn’t appear within the opened solution/project within Visual Studio. If I double-click on the script within Unity it will open the file within Visual Studio, but because it is not deemed as part of the project, it has no references and thus no intelli-sense.
I noticed this initially using 20182.14f1, although having uninstalled that, and Visual Studio separately, re-installed both, I note that the same behaviour is now also occurring in a 2018.3.0b8 install I have also. These are the only installs I currently have but my believe would be that it would affect all installations.
If I change the view within Visual Studio you can see the file in the folder script, if you right-click on it it has the option to Include in Project. This isn’t a solution however as the file already is part of the project, proven by opening the project file and you can see the file listed.
So, the file is created correctly. Unity is updating the project file, but the project file isn’t getting reloaded within Unity.
This led me to wonder about the installed Unity Tools for Visual Studio, I have tried uninstalling these, it requires Visual Studio to be closed, upon re-opening Visual Studio they appear again, by all accounts getting automatically reinstalled.
Has anyone else come across this? I do see frequent yellow flag notification within Visual Studio when there are updates available, I normally apply these and will have done so within this time frame. I have no knowledge of which version I was running when things were ok, and when they stopped being ok.
Thanks in advance for any help.
Kind regards
Rob