2017.2.0f3 Editor Not Generating Correct VS SLN/CSProj

I’ve got a really annoying problem as of 2017.2.0f3 (well the entire thing seems to be worse than any release ever…) with creating new scripts.

If I create a new script in the Unity Editor, it will not appear in the game project in VS. It shows up as “Miscellaneous Files”:

Whereas all good scripts show up with the appropriate project:

I have to manually delete the csproj/sln file each time I’m trying to create a new script! This has never happened to me so far.

I have the same problem but in Unity 2017.1.1f and Visual Studio 15.4.1 and Visual Studio Tools for Unity 3.4.0.2. It happens, when Visual Studio working and script created in Unity Editor. If I create script when VS not executed all fine. Deleting csproj/sln is solving the problem. It seems the solution files not synchronize properly when VS is executed.