我终于得到了一个遗留的ASP.NET项目,我负责维护它。关于它和我的暂定自动回答的问题是here。
简而言之,我需要做的一件事就是清理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"添加了条目,如何防止再次发生?该项目不受源代码管制。
当我打开解决方案时,我看到一条消息说," ...无法找到映射...暂时断开连接..."为什么甚至期望找到映射?
答案 0 :(得分:1)
项目所在的文件夹作为工作区映射到TFS。您将需要移动文件或删除工作区,否则Visual Studio将继续添加源代码管理。