Page 1 of 1

How to upgrade to new templates?

PostPosted: Tue Jun 06, 2017 2:39 pm
by eu11111
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.

Re: How to upgrade to new templates?

PostPosted: Sun Jun 11, 2017 7:16 pm
by fupanda
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!

Re: How to upgrade to new templates?

PostPosted: Mon Jun 12, 2017 8:44 pm
by eu11111
Thank you!

What merge tool do you use? VS defaul?

Re: How to upgrade to new templates?

PostPosted: Mon Jun 12, 2017 9:09 pm
by fupanda
Yes we use the default vs merge tool in combination with TFS

Re: How to upgrade to new templates?

PostPosted: Thu Jun 15, 2017 3:40 am
by AndrewT
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?