admin管理员组文章数量:1415420
Problem:
I'm trying to install a custom template using the
dotnet new -i command <Azure DevOps Repo URL>
from a private Azure DevOps Git repository, but I’m encountering the error:
'url' is not supported
but when i try to clone the same repo i don't encounter any problem.
What am I missing? How can I fix this issue and properly install the template from my Azure DevOps repository using dotnet new?
Problem:
I'm trying to install a custom template using the
dotnet new -i command <Azure DevOps Repo URL>
from a private Azure DevOps Git repository, but I’m encountering the error:
'url' is not supported
but when i try to clone the same repo i don't encounter any problem.
What am I missing? How can I fix this issue and properly install the template from my Azure DevOps repository using dotnet new?
Share Improve this question asked Feb 11 at 11:20 SBATSBAT 516 bronze badges1 Answer
Reset to default 1The error you're encountering is because the dotnet new -i
command does not support installing templates directly from a URL.
According to dotnet new install,
The
dotnet new install
command installs a template package from thePATH
orNUGET_ID
provided.
To install a custom template from your Azure DevOps repository, you can follow these steps:
- Clone the repository locally by running
git clone <Azure DevOps Repo URL>
. - Navigate to the template directory or copy the template to your target directory.
- Install the template from the local directory.
dotnet new install .
本文标签:
版权声明:本文标题:.net - Git Azure DevOps URL Not Supported Error When Running dotnet new -i <Azure DevOps Repo URL> (Even with PAT) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745215548a2648143.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论