Visual Studio 2017文件图标保存文件更改后。

时间:2021-02-27 20:20:56

Does anyone know why every time I save changes to a file within Visual Studio 2017 it changes my file icon (see screenshot below)?

有谁知道为什么每次我在Visual Studio 2017中保存文件更改时,它都会更改我的文件图标(见下面的截图)?

Visual Studio 2017文件图标保存文件更改后。

I'm not sure if this is the result of an extension I've installed or was rolled out within an update to Visual Studio.

我不确定这是我安装的扩展的结果,还是在Visual Studio的更新中推出的。

I would really like to disable this, any help is appreciated.

我真的很想禁用这个,任何帮助都是感激的。

UPDATE 1

更新1

This doesn't seem to be related to Git integration as the icons still change with source control features disabled (see screenshot below).

这似乎与Git集成无关,因为图标仍然会随着禁用源代码控制特性而改变(见下面的截图)。

Visual Studio 2017文件图标保存文件更改后。

2 个解决方案

#1


2  

This seems to be a known issue for .NET Core solutions within Visual Studio 2017.

这似乎是Visual Studio 2017. net Core解决方案的一个已知问题。

The developer community has already reported this issue, see Solution Shows Missing File Icon, which is currently "Under Investigation".

开发人员社区已经报告了这个问题,见解决方案显示丢失的文件图标,目前正在“调查中”。

Updated August 30, 2017

2017年8月30日更新

The fix for this known issue is now currently marked as "Fixed - Pending Release".

这个已知问题的修复现在被标记为“固定等待发布”。

Updated September 15, 2017

2017年9月15日更新

This issue has been fixed and is included within version 15.4 which is included in Visual Studio 2017 Preview. Downloaded and confirmed this is not longer an issue with the preview edition.

这个问题已经被修正,并包含在Visual Studio 2017预览版15.4中。下载并确认这不再是预览版的问题。

#2


0  

If you made sure VS didn't throw any error, warning or info exception in its Error List regarding the modified file, it most likely is related to the Git integration this Visual Studio edition came with. It works like a file version controller software, showing visual icons like this one to show if the files were commited and if they were, if they are new or not and altered or not.

如果您确保VS没有在它的错误列表中抛出任何错误、警告或信息异常,那么它很可能与这个Visual Studio版本附带的Git集成有关。它工作起来就像一个文件版本控制器软件,显示像这个这样的视觉图标来显示文件是否被引用,是否被引用,是否被修改或修改。

To disable source code control, go to Tools, Options, Source Code Control and select None. If nothing changes instantly, I recommend restarting VS and checking again.

要禁用源代码控件,请转到工具、选项、源代码控件并选择None。如果没有立即发生变化,我建议重新启动VS再次检查。

#1


2  

This seems to be a known issue for .NET Core solutions within Visual Studio 2017.

这似乎是Visual Studio 2017. net Core解决方案的一个已知问题。

The developer community has already reported this issue, see Solution Shows Missing File Icon, which is currently "Under Investigation".

开发人员社区已经报告了这个问题,见解决方案显示丢失的文件图标,目前正在“调查中”。

Updated August 30, 2017

2017年8月30日更新

The fix for this known issue is now currently marked as "Fixed - Pending Release".

这个已知问题的修复现在被标记为“固定等待发布”。

Updated September 15, 2017

2017年9月15日更新

This issue has been fixed and is included within version 15.4 which is included in Visual Studio 2017 Preview. Downloaded and confirmed this is not longer an issue with the preview edition.

这个问题已经被修正,并包含在Visual Studio 2017预览版15.4中。下载并确认这不再是预览版的问题。

#2


0  

If you made sure VS didn't throw any error, warning or info exception in its Error List regarding the modified file, it most likely is related to the Git integration this Visual Studio edition came with. It works like a file version controller software, showing visual icons like this one to show if the files were commited and if they were, if they are new or not and altered or not.

如果您确保VS没有在它的错误列表中抛出任何错误、警告或信息异常,那么它很可能与这个Visual Studio版本附带的Git集成有关。它工作起来就像一个文件版本控制器软件,显示像这个这样的视觉图标来显示文件是否被引用,是否被引用,是否被修改或修改。

To disable source code control, go to Tools, Options, Source Code Control and select None. If nothing changes instantly, I recommend restarting VS and checking again.

要禁用源代码控件,请转到工具、选项、源代码控件并选择None。如果没有立即发生变化,我建议重新启动VS再次检查。