我有一个只包含一个Web应用程序项目的解决方案文件。每次打开该文件时,都会弹出此消息:
然后在输出窗口中显示:
无法读取与解决方案相关的一些属性。
这是解决方案文件的文字:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Web Application", "..\Web
Application", "{2D32A179-D771-4510-9C8B-D17D50BE3AAE}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = "SAK"
SccAuxPath = "SAK"
SccLocalPath = "SAK"
SccProvider = "SAK"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv3.5"
Debug.AspNetCompiler.VirtualPath = "/Web Application"
Debug.AspNetCompiler.PhysicalPath = "D:\Projects\Web Application\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Web Application\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/Web Application"
Release.AspNetCompiler.PhysicalPath = "D:\Projects\Web Application\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Web Application\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "51664"
EndProjectSection
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 1
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = server_teamprojectcollection
SccWebProject0 = true
SccProjectUniqueName0 = .
SccProjectName0 = .
SccAuxPath0 = server_teamprojectcollection
SccLocalPath0 = .
SccProvider0 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccProjectEnlistmentChoice0 = 2
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2D32A179-D771-4510-9C8B-D17D50BE3AAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2D32A179-D771-4510-9C8B-D17D50BE3AAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
`
答案 0 :(得分:0)
以管理员身份运行Visual Studio,然后尝试打开该项目。出现这种情况有两个原因。
很可能两者都适用于你。
如果您从Interwebs下载了.zip文件,那么在解压缩之前,请进入文件的属性并解锁,然后取消归档。这样,Windows就不会将其包含的所有文件标记为不安全。
<强>更新强>
在更详细地阅读了您的问题之后,我做了一些研究,我认为问题在于解决方案文件中包含的TFS设置。他们不知何故出错了或者已经腐败了。
尝试按照here所述的步骤解决问题。如果仍然无效,则创建一个空白解决方案文件,并使用现有源将Web应用程序添加到解决方案中。您可以在“新建”菜单项下的“文件”菜单下找到它。