question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install template from Azure DevOps Nuget Feed

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
vlada-shubinacommented, Dec 6, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found