dalwadani
dalwadani

Reputation: 1

How to tell which version of ASP.NET a code is written in?

I inherited a code base from a different department. It’s written in ASP.NET and VB.NET. How to tell which version of ASP.NET it’s written in? My Visual Studio (on MacOS) could not open the project locally on my device:

VS error message

This might help: in the sln file:

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

Upvotes: 0

Views: 215

Answers (1)

Julie Xu-MSFT
Julie Xu-MSFT

Reputation: 340

Look the code follows please. TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"

It says that your code is using .Net Framework 4.5.

Upvotes: 1

Related Questions