【发布时间】:2020-05-24 19:48:10
【问题描述】:
我从不同部门继承了一个代码库。它是用 ASP.NET 和 VB.NET 编写的。如何判断它是用哪个版本的 ASP.NET 编写的?我的 Visual Studio(在 MacOS 上)无法在我的设备上本地打开项目:
这可能会有所帮助:在 sln 文件中:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.271
MinimumVisualStudioVersion = 10.0.40219.1
Project("{XXXXXXXXX}") = "xxxx", "xxxx", "{xxxxxxx}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = "SAK"
SccAuxPath = "SAK"
SccLocalPath = "SAK"
SccProvider = "SAK"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
Debug.AspNetCompiler.VirtualPath = "/xxxx"
Debug.AspNetCompiler.PhysicalPath = "xxxx\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\xxxxxx\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/xxxxx"
Release.AspNetCompiler.PhysicalPath = "xxxxx\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\xxxxxxx\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "62416"
SlnRelativePath = "xxxxxx\"
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{xxxxxxxxx}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{xxxxxxxxx}.Debug|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {xxxxxxxx}
EndGlobalSection
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {xxxxxxx}
SccTeamFoundationServer = xxxxxxx
SccLocalPath0 = .
SccWebProject1 = true
SccProjectUniqueName1 = xxxx
SccProjectName1 = xxxxxxx
SccLocalPath1 = xxxxxxx
SccProjectEnlistmentChoice1 = 2
EndGlobalSection
EndGlobal
【问题讨论】:
-
这是我的猜测,因为我现在无法访问这样的项目,但您可以在文本编辑器中打开项目文件,看看是否里面有什么相关的。
-
我用 vs 错误的截图添加了更多的细节问题
-
.NETFramework,Version%3Dv4.5是那里的线索。4.5是你的答案。 -
谢谢@ADyson,我知道这是.net 框架的版本。 asp.net的版本怎么样。它是asp.net webform 还是mvc?等等。
-
sln文件没有说明 项目的 框架。一个解决方案可以有多个项目。您可以在 Visual Studio for Mac 中打开的唯一项目是 Mono 和 .NET Core。您无法打开 .NET Framework 项目
标签: asp.net vb.net visual-studio