• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 47
  • Last Modified:

Migrating an asp.net app using .net framework 4.0 to 4.5 using Visual Studio 2017

What are the steps to migrate an asp.net app using .net framework 4.0 to 4.5 using Visual Studio 2017?
0
Ray Turner
Asked:
Ray Turner
  • 2
2 Solutions
 
MishaProgrammerCommented:
If you want to configure your app to run on the .NET Framework 4.5, add the < supportedRuntime> tag to the application configuration file:
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
    </startup>
</configuration>

Open in new window

0
 
Tapan PattanaikSenior EngineerCommented:
Hi Ray Turner,

steps to migrate an asp.net app using .net framework 4.0 to 4.5 :

Locate configuration file for the .NET Framework project. and  add <supportedRuntime> element  to the application configuration file

Configure an App to Support .NET Framework 4 or 4.5

https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-configure-an-app-to-support-net-framework-4-or-4-5

Migration Guide to the .NET Framework:

https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Thanks!
0
 
Ray TurnerSenior ConsultantAuthor Commented:
One more questions.  So do I need the following lines of code?  Do I need to change all 4.0 references to 4.5?

            <compilation debug="false" strict="false" explicit="true" targetFramework="4.0">
                  <assemblies>
                        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                  </assemblies>
            </compilation>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now