Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • deep C 13 posts 123 karma points
    Jun 21, 2024 @ 22:50
    deep C

    Cant install dotnet templates for Umbraco 10 using dotnet CLI

    I was able to install the Umbraco 14 templates but I need Umbraco 10

    I changed the default to .net core 6.0.423 using global.json but when I try to install the Umbraco 10 templates using:

    dotnet new install Umbraco.Templates::10.xx

    returns: Error: Invalid option(s): Umbraco.Templates::10.xx

    dotnet new install Umbraco.Templates

    returns: Error: Invalid option(s): Umbraco.Templates

    dotnet new -i Umbraco.Templates

    returns: Umbraco.Templates::10.xx is not supported.

    How do I either get the templates or create an Umbraco 10 project in Visual Studio 2022?

    Thanks for your help.

  • deep C 13 posts 123 karma points
    30 days ago
    deep C

    I got the following to work.

    dotnet new -i Umbraco.Templates::9.5.4

    dotnet new umbraco -n "MyProject"

    Apparently the first line will replace the dotnet Umbraco template

  • Kevin Jump 2319 posts 14774 karma points MVP 8x c-trib
    30 days ago
    Kevin Jump

    I think the docs are a bit generic, when they say 10.xx they mean the version e.g 10.8.6 but you can do 10.* and that will get you the latest version of the templates.


    dotnet new install Umbraco.Templates::10.*

    should work. and always get the latest version of the 10 templates.

  • Bishal Tim 16 posts 105 karma points c-trib
    18 days ago
Please Sign in or register to post replies

Write your reply to: