locked
Migrate Asp.Net Core 2.1 to 3.1 RRS feed

  • Question

  • User602350313 posted

    Hi ,

    Please help me on this,

    I want to migrate my WebApi project from Asp.Net Core 2.1 to 3.1.

    Please give me the instruction and guideline to set up through VS Code.

    Regards,

    Biju

    Thursday, January 2, 2020 6:41 AM

Answers

  • User1289604957 posted

    Hi,

    First, I recommend you migrate from 2.1 to 2.2 then from 2.2 to 3.0. The last step from 3.0 to 3.1 is very easy.

    https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio

    Best regards,

    Maher

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 2, 2020 11:27 AM
  • User-474980206 posted

    most of the changes are in program, and startup and package (nuget). just make a new 3.1 project and copy the file contents of these. add any packages you use to the template project first. check the docs of you packs to see if the updates have any changes for startup.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 2, 2020 3:16 PM

All replies

  • User1289604957 posted

    Hi,

    First, I recommend you migrate from 2.1 to 2.2 then from 2.2 to 3.0. The last step from 3.0 to 3.1 is very easy.

    https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio

    Best regards,

    Maher

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 2, 2020 11:27 AM
  • User-474980206 posted

    most of the changes are in program, and startup and package (nuget). just make a new 3.1 project and copy the file contents of these. add any packages you use to the template project first. check the docs of you packs to see if the updates have any changes for startup.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 2, 2020 3:16 PM
  • User-1556939524 posted

    I agree with you, since there are many complications to apply changes on the same solution. In addition of this, I think it's better to make it now and not later on, specially if the solution does not use a large number of dependencies and is going to grow up in the future.

    Wednesday, March 4, 2020 6:54 AM
  • User-2054057000 posted

    If I was in place of you then I would have starting this by making a new project in ASP.NET Core 3.1 and then transferring my old website to it one part at a time. Moreover ASP.NET Core 3.1 has a new feature of Endpoint Routing which is a new thing to look for. The rest things are not that much important, I think you will not have to do much changes to make your project work in 3.1. 

    Wednesday, March 4, 2020 11:30 AM