我正在尝试临时注释 .sln 文件中的某些行,但收到错误消息:“所选文件是解决方案文件,但似乎已损坏且无法打开”
根据这个博客评论是由“ # ”完成的,但是当我注释掉 GlobalSection 中的每一行(关于 Team Foundation Server 源代码控制绑定的部分)时,我得到了上述错误。有没有其他方法可以注释掉 .sln 中的行?
编辑 - 我想评论的部分:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4BA58AB2-18FA-4D8F-95F4-32FFDF27D184C}
SccTeamFoundationServer = http://oxy:8080/tfs/projects
SccLocalPath0 = .
SccProjectUniqueName1 = Accounts\\Accounts.vbproj
SccProjectName1 = Accounts
SccLocalPath1 = Accounts
EndGlobalSection
我试过这个,但不工作:
# GlobalSection(TeamFoundationVersionControl) = preSolution
# SccNumberOfProjects = 2
# SccEnterpriseProvider = {4BA58AB2-18FA-4D8F-95F4-32FFDF27D184C}
# SccTeamFoundationServer = http://oxy:8080/tfs/projects
# SccLocalPath0 = .
# SccProjectUniqueName1 = Accounts\\Accounts.vbproj
# SccProjectName1 = Accounts
# SccLocalPath1 = Accounts
# EndGlobalSection
PS:我尝试了使用“ # ”的单行注释- 有效。并且删除整个部分也可以。但我不想删除它,只是评论它。