I'm working on an ASP.NET MVC project in Visual Studio 2015 Community, using git as the VCS via Visual Studio's built-in git support in Team Explorer.
Whenever I edit a file, the edited file shows up in Team Explorer's Changes list as expected, but the website project's .csproj file is also added to the Changes list. Note, this happens when I just edit a file (e.g. a JavaScript file) in the project, without making any changes to the project itself (like adding/removing a file).
Clicking the Stage All button will stage the file I've changed, but not the .csproj file. Diffing the .csproj file in Beyond Compare reveales that (as expected) it's identical to the previous version. Nothing has changed (not even the line ending type).
The only way to clear the .csproj file from the Changes list is to right-click and Undo Changes.
It's not a critical problem, it's just annoying. Any idea why this is happening and how I stop it?
(Environment details: Visual Studio 2015 Community Update 3, ReSharper Ultimate 2016.1.2, both Windows 7 and Windows 10)
This issue is fixed in Visual Studio 2019 version 16.8.2. As per this link from Visual Studio developer community.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With