Skip to content
Discussion options

You must be logged in to vote

Hi @mrhighstone,

There's no automated upgrade mechanism - that's a limitation of the dotnet new template system itself. Here's the approach I recommend:

  1. Uninstall the current version of the template:
    dotnet new uninstall Clean.Architecture.Solution.Template
  2. Install the version that matches your current project:
    dotnet new install Clean.Architecture.Solution.Template::X.X.X
  3. Create a new project based on your current template version:
    dotnet new ca-sln
  4. Initialize a git repo and commit:
    git init
    git add .
    git commit -m "Initial Commit"
  5. Install the latest version of the template:
    dotnet new install Clean.Architecture.Solution.Template
  6. Overwrite with the new template:
    dotnet new ca-sln --force

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jasontaylordev
Comment options

You must be logged in to vote
1 reply
@jasontaylordev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants