Copied to clipboard

Flag this post as spam?

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


  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Installation issues

    Hi,

    I'm having some issue with installing umbraco 9. I have added the nuget source using the command line. So far so good..

    When trying to install the template, it searches only my local nuget server (running BaGet) and of cause fails. I assumed that all available nuget sources would be searched? Is there a parameter i can add that instructs which nuget source i want to use?

    dotnet new -i Umbraco.Templates::9.0.0-beta001
    

    /ulrich

  • Henk Jan Pluim 15 posts 67 karma points
    6 days ago
    Henk Jan Pluim
    0

    Hi Ulrich,

    I also tried installing Umbraco 9 beta release. I first added a new nuget source with the following command:

    dotnet nuget add source "https://www.myget.org/F/umbracoprereleases/api/v3/index.json" -n "Umbraco Prereleases"
    

    Did you do this and check if its there as a nuget source by running the following command?

    dotnet nuget list source
    

    And after that I could install the template

    dotnet new -i Umbraco.Templates::9.0.0-beta001
    

    And then create a new custom solution based upon this template.

    Hopefully this will help!

    Kind regards, Henk Jan Pluim

  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Hi Henk,

    Yes i added the source and dotnet nuget list source also lists the Umbraco Prereleases source.

    /ulrich

  • Henk Jan Pluim 15 posts 67 karma points
    6 days ago
    Henk Jan Pluim
    0

    Hi Ulrich,

    So if I understand you correctly the next step would be:

    dotnet new umbraco -n MyCustomUmbracoSolution
    

    Is the template umbraco listed when you do a dotnet new --list command?

    Which message you receive when you create a new umbraco project with the first command?

    Kind regards, Henk Jan Pluim

  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Hi Henk,

    No.. it fails while trying to install the template.. and in the error description, I can se that it tries to get the template from my local nuget source - not the Umbraco Prerelease source...?!

    /ulrich

  • Henk Jan Pluim 15 posts 67 karma points
    6 days ago
    Henk Jan Pluim
    0

    Hi Ulrich,

    You can specify where to install the template from:

    dotnet new --nuget-source https://www.myget.org/F/umbracoprereleases/api/v3/index.json -i Umbraco.Templates::9.0.0-beta001
    

    Hopefully this will help.

    Kind regards, Henk Jan Pluim

  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Hi Henk,

    Thanks.. that got me one step further... ;)

    But i have the same issue when trying to crate a project.. somehow my local nuget source takes precedence over everything else..?? .. need to gain some knowledge here...

    Thanks so far.. ;)

    /ulrich

  • Henk Jan Pluim 15 posts 67 karma points
    6 days ago
    Henk Jan Pluim
    0

    Hi Ulrich,

    Thats great to hear! Maybe taking a look at your NuGet default configuration can help you tweak the nuget behaviour..

    Common NuGet configuration

    Cheers, have a nice Sunday!

    Kind regards, Henk Jan Pluim

  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Hi Henk,

    Everything looks fine.. then i tried to remove my local nuget source from nuget.config.. and then it moved on a bit.. ;) .. but just to fail when just trying to get the umbraco bits from the next source which in this case was a nuget source from Telerik... :-/

    I hope this is just a minor bug in the dotnet core template thing as this is pretty useless if you cannot have additional nuget sources besides nuget.org and the myget umbraco source...!!

    /ulrich

  • Paul Seal 443 posts 2413 karma points MVP 3x c-trib
    6 days ago
    Paul Seal
    1

    Hi I think once you have the template installed you can use the new project gui in visual studio. Have you tried that?

  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Hi Paul,

    I didn't think of that... It worked.. :D

    Thanks.. ;)

    /ulrich

  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Hi Paul,

    The joy was short... I have the same problem within Visual Studio.. As long as i have additional nuget sources, it fails.. :-(

    This is a pattern i don't like...

    /ulrich

  • Paul Seal 443 posts 2413 karma points MVP 3x c-trib
    6 days ago
    Paul Seal
    0

    Hi Ulrich Did you install the .NET 5 SDK and did you update you visual studio 2019 version?

  • Ulrich Wagner Gade Ebsen 119 posts 247 karma points
    6 days ago
    Ulrich Wagner Gade Ebsen
    0

    Hi Paul,

    Yes to both.. ;)

    I tried to disable a couple of sources, and then it worked.. ;)

    It seems that dotnet core is unhappy with the answer from BaGet nuget server, and my login for Telerik nuget server is no longer valid.. with these two out of the way, everything works fine... ;)

    When building umbraco 8 solutions on .NET 4.8 I don't have theese issues..?!

    /ulrich

Please Sign in or register to post replies

Write your reply to:

Draft