Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
And then create a new custom solution based upon this template.
Hopefully this will help!
Kind regards, Henk Jan Pluim
Yes i added the source and dotnet nuget list source also lists the Umbraco Prereleases source.
dotnet nuget list source
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?
dotnet new --list
Which message you receive when you create a new umbraco project with the first command?
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...?!
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.
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.. ;)
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!
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...!!
I think once you have the template installed you can use the new project gui in visual studio. Have you tried that?
I didn't think of that... It worked.. :D
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...
Did you install the .NET 5 SDK and did you update you visual studio 2019 version?
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..?!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted