[英]Installing a new dotnet 5 template doesn't work
I was trying to install dotnet 5 template for UnoApp and even though it worked on one machine other one seems to just print a list of current templates when I use dotnet new --install Uno.ProjectTemplates.Dotnet::3.5.0-dev.270
command.我试图为UnoApp安装 dotnet 5 模板,即使它在一台机器上工作,当我使用
dotnet new --install Uno.ProjectTemplates.Dotnet::3.5.0-dev.270
时,另一台似乎只是打印当前模板的列表dotnet new --install Uno.ProjectTemplates.Dotnet::3.5.0-dev.270
命令。 I use the same OS on both machines (windows 10) and also the same version of dotnet (5.0.301)我在两台机器上使用相同的操作系统(windows 10)以及相同版本的 dotnet(5.0.301)
Installing the Uno Platform templates is generally done through the Visual Studio extension , and can also be done through the dotnet new
templates:安装 Uno 平台模板一般是通过Visual Studio 扩展来完成的,也可以通过
dotnet new
模板来完成:
dotnet new -i Uno.ProjectTemplates.Dotnet
The command line you use is installing a pretty old version of preview templates.您使用的命令行正在安装一个相当旧版本的预览模板。 This one installs the latest stable.
这个安装了最新的稳定版。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.