Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version?
- 10.30.
- What is your product type (Angular or MVC)?
- MVC
- What is product framework type (.net framework or .net core)?
- core
We are going to upgrade aspnetzero version from 10.3.0 to 10.4.0 From your doc https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Version-Updating you guys mentioned under Existing Projects
Create an empty project from AspNet Zero website using your existing project name but select the version when you started development for your project. If you don't remember the initial AspNet Zero version you have started your project, you can check [*.Core/AppVersionHelper.cs].
I am little confused in above bold statement I think, that should be the new version which we are going to upgrade which should be 10.4.0 in our case. This would go under aspnetzero branch Our dev and aspnetzero branch would be same but migrade branch would conains our existing 10.3.0 version Then we can follow the step as per your doc Switch to dev branch and update it from migrate branch. In this step, you will face conflicts. You have to resolve those conflicts manually.
Right?
Thanks
1 Answer(s)
-
0
The document in their tutorial is correct. Hope this helps for more clarity
These are the steps I use:
Download updated Framework.
Update Node JS - if required Update Yarn - if required update npm "npm install -g npm@latest" - if required SDK's - if required
Steps :
- Checkout Framework-Master (this is just a branch with the download extracted from anz page - Usually the last update I did)
- Delete all files from Framework-Master and paste new framework base (the updated files from download page)
- git add .
- git commit -m "Framework 9.3.0 - Initial" (whatever version you downloaded)
- git push
- Before opening the solution, open a command prompt, navigate to root directory of *.Web.Mvc project and run "yarn" command to install client side dependencies yarn Important Notice: Installing client side npm dependencies using yarn before opening the solution will decrease project opening & building time dramatically.
- Open web project build solution
- Change appsetting.json db connection string (point to blank db)
- Build Solution Web.Mvc
- Open terminal to your_project_name\src\your_project_name.EntityFrameworkCore
- run database update (dotnet ef database update)
- Before running the project, we need to run a npm task to bundle and minify the CSS and JavaScript files. In order to do that, we can open a command prompt, navigate to root directory of *.Web.Mvc project and run "npm run create-bundles" command. This command should be run when a new npm package is being added to the solution.
- Run Mvc.Web
- Terminal into root folder your_project_name (src folder should be visible).
- git add .
- git commit -m "Framework 9.3.0 - Working"
- git push
- Clone a remote branch master and switch to it: git checkout -b Framework-v9.3.0 origin/Framework-Master
- Run the Web.Mvc, ensure it launches properly.
- Merge master into new Framework-v9.3.0
- Resolve conflics