asp.netvisual-studio-2013visual-studio-2019asp.net-4.5

Can a WebForms application in Asp.net 4.5.1 developed in Visual Studio 2013 be opened and worked on in Visual Studio 2019?


I have an Asp.net 4.5.1 Web Forms project developed on Visual Studio 2013. I want to start using Visual Studio 2019. When I open the project in Visual Studio 2019 I get errors in many places.

For example:

IDE0005 Using directive is unnecessary

CS0234 The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

CS0246 The type or namespace name 'OwinStartup' could not be found (are you missing a using directive or an assembly reference?)

and other or similar errors.

Is it possible to continue developing this project as is in Visual Studio 2019 without making fundamental changes?

Will I have similar or other problems using Visual Studio 2015 to continue developing this project?

Thank you!


Solution

  • First, you need to update asp.net version(.net Framework version) to the latest version. (Please right-click properties->Target framework->.net framework 4.8)

    Second, please reinstall the related reference in the nuget-package.

    I will make an example for your question about OwinStartup problem:

    Please see the following picture to add the nuget-package in vs2019.

    enter image description here

    If the IntelliSense isn't appear, please search it in the nuget-package.(Right click-References->Manage Nuget Packages)