Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

csproj file marked changed in Team Explorer when it hasn't changed (git)

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)

like image 549
Mark Whitaker Avatar asked Jul 06 '16 13:07

Mark Whitaker


1 Answers

This issue is fixed in Visual Studio 2019 version 16.8.2. As per this link from Visual Studio developer community.

like image 166
Utsav Dawn Avatar answered Oct 12 '22 23:10

Utsav Dawn