简体   繁体   English

安装新的 dotnet 5 模板不起作用

[英]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.这个安装了最新的稳定版。

Same (nothing) happened!同样(没有)发生! List all template but doesn't install anything.列出所有模板但不安装任何东西。

网络

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 NuGet Feed 安装 dotnet new 模板不起作用,在本地工作 - Installing dotnet new template not working from NuGet Feed, works locally Dotnet构建不适用于newcsproj和PackageReference - Dotnet build doesn't work with newcsproj and PackageReference dotnet 命令在 powershell 中不起作用 - dotnet command doesn't work from powershell 为什么Mac上没有dotnet new创建.csproj文件? - Why doesn't dotnet new on Mac create .csproj files? dotnet new 的多项目模板 - Multi project template for dotnet new 使用新的 dotnet new 模板版本更新 Dotnet Core 项目 - Update Dotnet Core Projects with new dotnet new Template Version 如何使用新的 dotnet 6 模板添加命名空间? - How to add a namespace using the new dotnet 6 template? Azure function 从 Visual Studio 2022 部署的 Dotnet 6 不起作用 - Azure function deployed with Dotnet 6 from Visual Studio 2022 doesn't work dotnet ef dbcontext scaffold command --data-annotations 或 -d 命令行参数似乎不起作用 - dotnet ef dbcontext scaffold command --data-annotations or -d command line parameter doesn't seem to work WPF (Bug) FocusVisualStyle 不适用于带有模板的 Window - WPF (Bug) FocusVisualStyle doesn't work for Window with Template
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM