我终于能够运行一个我负责维护的遗留 ASP.NET 项目。一个关于它的问题和我的试探性自动回答在这里。
简而言之,似乎我需要做的一件事就是清除 TFS 文件和 .sln 文件中引用它们的部分。
至于后者,我从解决方案 (.sln) 文件中删除了这些条目:
SccProjectName = "SAK"
SccAuxPath = "SAK"
SccLocalPath = "SAK"
SccProvider = "SAK"
...但是由于某种原因它们已被添加回来,因此我的 .sln 再次包含它们,并且对于上下文/完整披露是:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "MembersOrderEntry", "MembersOrderEntry", "{7D7D3972-0891-4600-BCBC-
CA40B0D0FF6E}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = "SAK"
SccAuxPath = "SAK"
SccLocalPath = "SAK"
SccProvider = "SAK"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv3.5"
Debug.AspNetCompiler.VirtualPath = "/MembersOrderEntry"
Debug.AspNetCompiler.PhysicalPath = "MembersOrderEntry\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\MembersOrderEntry\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/MembersOrderEntry"
Release.AspNetCompiler.PhysicalPath = "MembersOrderEntry\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\MembersOrderEntry\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "2030"
VWDDynamicPort = "false"
SlnRelativePath = "MembersOrderEntry\"
DefaultWebSiteLanguage = "Visual Basic"
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7D7D3972-0891-4600-BCBC-CA40B0D0FF6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7D7D3972-0891-4600-BCBC-CA40B0D0FF6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7D7D3972-0891-4600-BCBC-CA40B0D0FF6E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
为什么添加了“SAK”条目,我该如何防止这种情况再次发生?该项目不受源代码控制。
当我打开解决方案时,我看到一条消息,上面写着“...找不到映射...暂时断开连接...”为什么它甚至期望找到映射?