Base solution for your next web application
Open Closed

How to upgrade to new templates? #3340


User avatar
0
eu11111 created

I noticed that you recently made quite a big change to module-zero-core-template, adding docker support.

I am looking forward to upgrade my application, adding these new changes to it. Usually I do it manually, reading the changelogs and changing file by file. I would like to know if there is a reasonable way of doing it automatically. I thought about pulling the changes from the repo, but the names won't match during the merge, such as AbpCompanyName.AbpProjectName.

Could someone tell me what is the best way of doing it?

Thanks in advance.


4 Answer(s)
  • User Avatar
    0
    fupanda created

    If there is a possibility to do it automatically I sure want to know. I always upgrade as follows: Assuming you have all checked in to source control (we use tfs)

    • Copy all files from the new version to your workspace, overwrite the existing files
    • Go to source control and compare and merge project files. To do this in an easy way, you have to unload the project from the solution.
    • When project files merged, the source control connection is also restored
    • You have to walk trough all files, but you will see in vs if you need to compare a file, because of the source control icon
    • In vs you have to check the "show all files" In solution explorer. In that way you will see if you missed files you have to add
    • When done, build your solutions and all new NuGet packages are downloaded. If not, you kan do in manually.
    • After that make a backup of your database and upgrade your database with package manager console. You may have to create a new migration.

    It took me 3 hours to upgrade. But good testing is very hard and takes a lot of time.

    Hopefully this will help you, good luck!

  • User Avatar
    0
    eu11111 created

    Thank you!

    What merge tool do you use? VS defaul?

  • User Avatar
    0
    fupanda created

    Yes we use the default vs merge tool in combination with TFS

  • User Avatar
    0
    AndrewT created

    If there is an automated way to do this we would be keen to know too... Maybe this is a managed service that aspnezero could offer?