【发布时间】:2018-02-20 14:02:02
【问题描述】:
在项目的某个时间点,TeamExplorer 开始不断提示解决方案文件的变化,但与 VS 中未修改的版本对比并没有发现任何变化。
Screenshot: Team Explorer claiming solution file has been changed
到目前为止我尝试了什么:
- 为了排除 git 问题,我打开 git bash 并运行 git status,但也没有显示任何更改。
-
当我尝试暂存幽灵更新时,团队资源管理器的 git 控制台显示了这一点:
文件未暂存,因为它在内存中修改但未保存到磁盘:C:\Develop\playground\ClassLibrary1\ClassLibrary1.sln
在 VS 中单击任何保存按钮或菜单功能均无济于事。
尝试通过 Commit All 操作按钮提交此重影更改,VS 显示一般错误“致命:提交输出中的意外序列。”。
重新克隆整个 repo 没有帮助。
将其他更改提交到解决方案文件将无济于事。
行尾结帐正常 (CR/LF)。
Visual Studio 版本为 15.5.5。
知道是什么原因造成的或如何摆脱它吗?
这是我的解决方案文件:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2026
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{3E6F764F-D995-4551-921E-43D70B3129B8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E9781EEA-6178-46BD-82B9-AED6B76C8D14}"
ProjectSection(SolutionItems) = preProject
version.json = version.json
EndProjectSection
ProjectSection(FolderGlobals) = preProject
__JSONSchema =
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3E6F764F-D995-4551-921E-43D70B3129B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3E6F764F-D995-4551-921E-43D70B3129B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3E6F764F-D995-4551-921E-43D70B3129B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3E6F764F-D995-4551-921E-43D70B3129B8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7EDCF511-FC54-4E98-9064-11E9A1B43DD1}
EndGlobalSection
EndGlobal
【问题讨论】:
-
告诉我你的行尾。
标签: git visual-studio-2017 team-explorer