Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Upgrade aspnetzero version #10549


User avatar
0
SignumHealth created

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)
  • User Avatar
    0
    dexmox created

    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 :

    1. Checkout Framework-Master (this is just a branch with the download extracted from anz page - Usually the last update I did)
    2. Delete all files from Framework-Master and paste new framework base (the updated files from download page)
    3. git add .
    4. git commit -m "Framework 9.3.0 - Initial" (whatever version you downloaded)
    5. git push
    6. 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.
    7. Open web project build solution
    8. Change appsetting.json db connection string (point to blank db)
    9. Build Solution Web.Mvc
    10. Open terminal to your_project_name\src\your_project_name.EntityFrameworkCore
    11. run database update (dotnet ef database update)
    12. 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.
    13. Run Mvc.Web
    14. Terminal into root folder your_project_name (src folder should be visible).
    15. git add .
    16. git commit -m "Framework 9.3.0 - Working"
    17. git push
    18. Clone a remote branch master and switch to it: git checkout -b Framework-v9.3.0 origin/Framework-Master
    19. Run the Web.Mvc, ensure it launches properly.
    20. Merge master into new Framework-v9.3.0
    21. Resolve conflics