Upgrade Azure App Service to match upgrade of .NET from 5 to 6

65810666 56 Reputation points
2022-11-14T23:13:48.203+00:00

I have an existing ASP.NET 5 application that is deployed on Azure app service.
I am using deployment using Zip package deployment.
https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package

I upgraded the .net from 5 to 6.
What should I do on the App service to reflect these changes?
Is Azure smart enough to detect the .net versions of the assemblies and update that on the app-service?

Developer technologies | ASP.NET | ASP.NET Core
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,971 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-11-15T02:24:21.537+00:00

    Hi @65810666

    You are currently preparing to upgrade your project to . Net6, which was chosen when creating the app service. Net5. If you upgrade now, theoretically, the app service does not need to make any modifications. If you can't use it after upgrading, you can follow the steps below to add an extension and modify the .NET version in Configuration.

    App service is based on a sandbox environment, which theoretically supports projects in common languages today. As shown in the following figure:

    260341-image.png

    260325-image.png

    As you can see, I chose when I created it. Net6, but as seen through the dotnet command line, it is already supported. Net7. and other programming languages.

    Please allow me show the dotnet sdks and runtimes in this app.

    260295-image.png

    260259-image.png

    From the pictures above, when we upgrade the project, we do not need to make any changes to the app service, we just need to confirm whether the current sandbox environment supports this version.

    If it still does not work normally after the upgrade, we need to add a runtime to the extension.

    260267-image.png

    260296-image.png


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Jason

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.