【发布时间】:2019-02-21 12:44:01
【问题描述】:
dotnet : No templates matched the input template name: wpf.
At line:1 char:1
+ dotnet new wpf -o TestAppWPFCore
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (No templates ma...late name: wpf.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
【问题讨论】:
-
你能用运行
dotnet --info的结果编辑你的问题吗? (我自己试过了,效果很好——我使用的是 SDK 3.0.100-preview-010184) -
您安装了哪个 Visual Studio 2019 版本?是否包含最新的 3.0 SDK?
dotnet-new来自 SDK,而不是 Visual Studio。我还可以使用3.0.100-preview-010184创建 WPF 和 Winforms 应用程序 -
我使用的是 VS2019 和 3.0.100-preview