SAFE-Stack / SAFE-template

dotnet CLI template for SAFE project
MIT License
282 stars 88 forks source link

Version 2.2.1 is not discoverable #421

Closed mexx closed 3 years ago

mexx commented 3 years ago

I've tried to install the template by running

dotnet new -i SAFE.Template

However the template doesn't appear in the listing of the installed templates after the command run.

I've tried to create a new project with the template by running

dotnet new SAFE

The output of this command:

Couldn't find an installed template that matches the input, searching online for one that does...
Matches from template source: NuGet
-----------------------------------
Template name "SAFE-Stack Web App v2.2.0" (SAFE) from author "Tomasz Heimowski" in pack SAFE.Template
    To use this template, run the following command and try again:
        dotnet new -i SAFE.Template::2.2.0

For some reason the latest version 2.2.1 is not installed by the first command and not offered by the second one. Looks like there is some defect in it.

theimowski commented 3 years ago

Huh thanks for reporting that. Indeed I've screwed something up when pushing 2.2.1, I'll see if I can release a valid next version

theimowski commented 3 years ago

Can you try 2.2.2?

mexx commented 3 years ago

Version 2.2.2 gets installed by:

dotnet new -i SAFE.Template

However it wasn't offered as update by:

dotnet new --update-check

and trying to create without installing offers still the version 2.2.0.

I don't know whether it's an issue in dotnet new or in the package.

theimowski commented 3 years ago

I wasn't aware of the --update-check option in dotnet new - I'll need to look if there's a feature that SAFE template is not using.

trying to create without installing offers still the version 2.2.0

I think that's expected? You need to update the template manually to get latest bits, right?