Unable to install template from Azure DevOps Nuget Feed
See original GitHub issueHi, I have my dotnet template packaged and pushed to a Azure DevOps (Cloud, not on-premises server) nuget artifact feed. I am now trying to download and install that using:
dotnet new --install Company.Templates.SomeTemplate --nuget-source "https://pkgs.dev.azure.com/<tenantName>/<teamProjectName>/_packaging/<feedName>/nuget/v3/index.json"
The output returned is:
The following template packages will be installed:
Company.Templates.SomeTemplate
Error: Failed to read package information from NuGet source https://pkgs.dev.azure.com/<tenantName>/<teamProjectName>/_packaging/<feedName>/nuget/v3/index.json.
Warning: Company.Templates.SomeTemplate is not found in NuGet feeds https://pkgs.dev.azure.com/<tenantName>/<teamProjectName>/_packaging/<feedName>/nuget/v3/index.json, https://api.nuget.org/v3/index.json, C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\.
Company.Templates.SomeTemplate could not be installed, the package does not exist.
I’ve also tried adding the --interactive
option to the above with no difference in behaviour
My dotnet restore
commands work successfully against this feed.
The current work around is to get users to download the nupkg to disk first and then dotnet new --install
sourcing from disk.
Should this work? or is this a gap in compatibility between dotnet net --install
and Azure DevOps?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Installing dotnet new template not working from NuGet ...
I have a template which is packaged and deployed to an Azure Devops NuGet Feed. I can't install this template when I use...
Read more >Unable to install custom nuget package in VS 2015 ...
Hi, We recently created a new Azure devops artifact feed and published a nuget package. The installation of this nuget package works fine ......
Read more >Restore NuGet packages in Azure Pipelines
Restore NuGet packages · Navigate to your pipeline definition and select the NuGet restore task. · Select Feeds and authentication, and then ...
Read more >Install and manage SDK templates - .NET
Install template Template packages are installed through the dotnet new install SDK command. You can either provide the NuGet package ...
Read more >Install NuGet packages using Visual Studio - Azure Artifacts
Open Visual Studio, and then select Tools > Options. · Select NuGet Package Manager, and then select Package Sources. · Enter your feed's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@danijam do you have credential provider installed?
it looks like the same issue as here: https://github.com/dotnet/templating/issues/2212#issuecomment-845159319 https://github.com/dotnet/templating/issues/1747#issuecomment-618519996
@danijam I’ve created https://github.com/NuGet/Home/issues/11435 for considerations on how to improve this experience. As this is not actionable for
dotnet new
, I’m closing this issue, please follow up and feel free to give a feedback in the other one if needed.