问题描述
为什么我不能使用dotnet new --install IdentityServer4.Templates::4.0.1
安装IdentityServer4模板?
当我运行命令时,它不会显示任何错误,只会显示我拥有的模板列表。 我检查了Windows用户NuGet的配置,似乎没有错。
我也尝试使用此命令dotnet new -i identityserver4.templates --nuget-source https://api.nuget.org/v3/index.json
,但是它也不起作用。
解决方法
我仍然没有解决问题的方法,但是我找到了解决方法,方法是下载IdentityServer Template的nuget软件包文件。然后我运行dotnet new -i <path>\identityserver4.templates.4.0.1.nupkg
。