You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何重新安装全局安装的dotnet模板NuGet包?

全局卸载并重新安装Umbraco.Templates模板包

全局卸载指定版本的模板包

使用以下命令全局卸载你安装的Umbraco.Templates::10.2.0:

dotnet new --uninstall Umbraco.Templates::10.2.0

如果需要卸载该模板包的所有版本,可以省略版本号:

dotnet new --uninstall Umbraco.Templates

重新安装指定版本的模板包

卸载完成后,执行你最初使用的安装命令重新安装:

dotnet new --install Umbraco.Templates::10.2.0

验证操作结果

可以通过以下命令查看已安装的模板列表,确认卸载和安装是否成功:

dotnet new --list

内容的提问来源于stack exchange,提问作者gongdongflong

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 18:20:59