【问题标题】:No Razor Components Template in Visual Studio 2019 [duplicate]Visual Studio 2019 中没有 Razor 组件模板 [重复]
【发布时间】:2019-08-26 16:22:58
【问题描述】:

我刚刚安装了 Visual Studio 2019(完整版)和 .NET Core 3.0 Preview 3,因此我可以测试 Razor 组件。在 Get started with Razor Components page 上,它说先决条件是 .NET Core Preview 3 和 VS 2019 Preview。我认为 VS 2019 的完整版(不是预览版)可以,但是没有 Razor 组件的模板(我什至无法在该对话框窗口上选择 .NET Core 3,正如入门页面上所说的那样)。

我仍然可以使用dotnet new razorcomponents 创建 Razor Components 项目,但是我不明白为什么没有模板,我真的必须安装 VS 2019 的预览版才能这样做吗?还是有其他方法可以添加模板?

【问题讨论】:

    标签: c# asp.net templates visual-studio-2019 razor-components


    【解决方案1】:

    正如吉米指出的那样,这个问题是重复的:ASP.NET Core 3.0 not showing on Visual Studio 2019 RC

    解决方法是去Tools -> Options -> Projects and Solutions -> .NET Core 开启Use previews of the .NET Core SDK

    【讨论】:

    • VS2019 PRevis 16.2.0中没有这个选项。它现在位于环境 - 预览功能下。
    猜你喜欢
    • 1970-01-01
    • 2020-02-04
    • 1970-01-01
    • 2014-06-14
    • 2020-08-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-20
    相关资源
    最近更新 更多