I downloaded Unity 5.3.2p3 (64-bit) as well as visual studio 2015, and all was going well except I really didnt like how visual studio 2015 seems to be a lot more forceful with its auto formatting. Frustrated after failing to disable it, I decided to just go back to Visual studio 2013. I created a new unity project and what not, but I seem to keep getting this popup anytime I create or delete a file inside visual studio and have unity recompile…
If I create the script in unity and then switch to visual studio, I seem to get the normal “Reload” popup, which is fine. However, this new popup keeps making me overwrite my Assembly file.
Since it seems to just happen when I create/delete files in visual studio, I am wondering if there is some setting I can change to stop this.
Normally that means you have saved your new .cs file (or deleted one), but the AssemblyInfo-CSharp.csproj is not yet saved to disk. When Unity detects the added or missing .cs file, it updates AssemblyInfo-CSharp.csproj.
But Visual Studio still has it’s unsaved changes to the project in memory - should it prefer its loaded project and overwrite AssemblyInfo-CSharp.csproj? discard the changes in the loaded project and reload from AssemblyInfo-CSharp.csproj?
You can avoid that dialog by either creating all new script files through Unity,
or by saving the project (hit the stack or floppy disks on the toolbar) in Visual Studio before Alt+Tabbing to Unity.