Migrating Auzre Function runtime version from 3.x to 4.x not working in VS 2019 but working in VS 2022 preview only

Navpreet Singh 21 Reputation points Microsoft Employee
2021-11-02T07:19:43.247+00:00

I have a requirement to migrate Azure function runtime version from 3.x to 4.x. Since 4.x is a preview version for Azure function. I have tried using VS 2019 for this operation but it is constantly giving error that .net version 6.0.0 is not available though I have changed the settings in appsettings file for >net version 6.0 and Function runtime to 4.0.

But when I tried 2022 VS preview and I am successfully able to migrate to 4.x runtime. But I want to continue using VS 2019 and it is not feasible for me to continue with 2022 preview mode.

Kindly help me with any component which I can install in 2019 and can still manage to migrate 3.x to 4.x.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
0 comments No comments
{count} votes

Answer accepted by question author
  1. MughundhanRaveendran-MSFT 12,511 Reputation points
    2021-11-08T04:10:14.823+00:00

    @Navpreet Singh ,

    Thanks for reaching out to Q&A.

    As per the documentation of Azure functions V4, the pre requisite for development purpose is Visual Studio 2022 preview 3 or Later. Moreover Functions runtime V4 is in preview as well. So at the moment it is not quite clear if Visual Studio 2019 would support Function V4 and .net 6.0.0. I will check this offline and confirm the compatibility of V4 functions in Visual Studio 2019.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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