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 20 posts 210 karma points
    Jun 21, 2024 @ 22:50
    deep C
    0

    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 20 posts 210 karma points
    Jun 22, 2024 @ 06:33
    deep C
    100

    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 2342 posts 14869 karma points MVP 8x c-trib
    Jun 22, 2024 @ 07:53
    Kevin Jump
    0

    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.

    e.g

    dotnet new install Umbraco.Templates::10.*
    

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

  • Bishal Tim 26 posts 115 karma points c-trib
    Jul 03, 2024 @ 16:59
Please Sign in or register to post replies

Write your reply to:

Draft