Visual studio 2013 年的 Web 表单和设计视图等同于 Visual studio 2019 年?
Visual studio 2013 web form and design view equivalent in Visual studio 2019?
我正在学习一个 ASP.NET 课程系列,其中讲师使用 Visual Studio 2013,我无法弄清楚他使用的设置在 2019 年的等价物是什么。他创建了一个新的 ASP.NET Web 应用程序,然后选择了 Empty 模板,但是在创建我的模板时我看不到其他选项,特别是 Web 表单框。
Web 表单(https://i.imgur.com/63lAKSg.png)
我也尝试这样做,但当他继续时,他能够 "Add a web form" 到该项目。他创建了一个扩展名为 .aspx 的 Web 表单。
Web 表单(https://i.imgur.com/rSgtqlT.png)
他还可以进入我看不到的设计视图模式。我可以右键单击 html 或 htmlcs 文件并使用 Web 表单编辑器选项打开它们,但此时我工具箱中的所有 HTML 项目都消失了(指针、按钮、文本区域、输入等)。我也尝试选择 ASP.NET Web 应用程序模板,但这对我的问题没有影响。
设计模式(https://i.imgur.com/q5uL2UI.png)
或者本课程只使用 VS 2013 会更好吗?
ASP.NET Web Forms是个老技术:
Web Forms was included in the original .NET Framework 1.0 release in 2002, as the first programming model available in ASP.NET. Unlike newer ASP.NET components, Web Forms is not supported by ASP.NET Core.
如果您导航到 ASP.Net Web Forms page,Microsoft 会告诉您:
Consider Razor Pages instead of Web Forms
Razor Pages is a more modern alternative for building web apps using HTML, CSS, JavaScript, and C#. Razor Pages can run on .NET Core - a high performance, cross-platform and open-source version of .NET that runs on Linux, macOS, and Windows.
如果您必须学习ASP.NET Web 表单,它在Visual Studio 2019 中受支持:
OP 要求比较 "New Project" gui 向导步骤,Visual Studio 2019(vs-2019)与 2019 之前的版本。该请求还具有学生学习上下文。
请找到一个示例,用于创建一个将 vs-2019 映射到 vs-2015 的 "Web Forms with Master" 应用程序,使用:
Murach 的 ASP.NET 4.6 和 C# 2015,
微软 Visual Studio 社区 2019,
Visual Studio 16.4.3
vs-2015 版本有一个选项供用户创建带有主应用程序的 Web 表单。按钮 "Web Form with Master" 通常在书籍和在线教程中进行说明,引导学习者逐步完成以达到预期结果。那个按钮不见了,功能并没有消失。
vs-2019 中带有 master 选项的 Web 表单称为 "Web API",可以在 "Create New Web Application" wizard/gui 屏幕上启用。
"Web Web Form with Master Page" 按钮在 vs-2019 中变为 。
映射步骤
查看插图以在 vs-2019 中创建母版页 ASP.NET 应用程序。如何启用 Web API 和 Site.Master
使用 vs-2019 运行,用户使用以下工具栏选项激活新项目 gui/wizard:文件 -> 新建 -> 项目...
Wizard/GUI 对比 2019
在 ~ image 3 missing ~ next ~ ASP.NET Web Application (DOT.NET) ~ ~ next ~ 配置你的新项目 ~~ (i.e., name它,并设置文件系统路径)~ ~ 下一步 ~ 创建一个新的 ASP.NET Web 应用程序 ~ Web 表单 ~~ 添加文件夹和核心引用 ~~ [ Checkbox ] Web API
结果
结果
加点看漏图三:i stack imgur com/FpKBb png
我正在学习一个 ASP.NET 课程系列,其中讲师使用 Visual Studio 2013,我无法弄清楚他使用的设置在 2019 年的等价物是什么。他创建了一个新的 ASP.NET Web 应用程序,然后选择了 Empty 模板,但是在创建我的模板时我看不到其他选项,特别是 Web 表单框。
Web 表单(https://i.imgur.com/63lAKSg.png)
我也尝试这样做,但当他继续时,他能够 "Add a web form" 到该项目。他创建了一个扩展名为 .aspx 的 Web 表单。
Web 表单(https://i.imgur.com/rSgtqlT.png)
他还可以进入我看不到的设计视图模式。我可以右键单击 html 或 htmlcs 文件并使用 Web 表单编辑器选项打开它们,但此时我工具箱中的所有 HTML 项目都消失了(指针、按钮、文本区域、输入等)。我也尝试选择 ASP.NET Web 应用程序模板,但这对我的问题没有影响。
设计模式(https://i.imgur.com/q5uL2UI.png)
或者本课程只使用 VS 2013 会更好吗?
ASP.NET Web Forms是个老技术:
Web Forms was included in the original .NET Framework 1.0 release in 2002, as the first programming model available in ASP.NET. Unlike newer ASP.NET components, Web Forms is not supported by ASP.NET Core.
如果您导航到 ASP.Net Web Forms page,Microsoft 会告诉您:
Consider Razor Pages instead of Web Forms
Razor Pages is a more modern alternative for building web apps using HTML, CSS, JavaScript, and C#. Razor Pages can run on .NET Core - a high performance, cross-platform and open-source version of .NET that runs on Linux, macOS, and Windows.
如果您必须学习ASP.NET Web 表单,它在Visual Studio 2019 中受支持:
OP 要求比较 "New Project" gui 向导步骤,Visual Studio 2019(vs-2019)与 2019 之前的版本。该请求还具有学生学习上下文。
请找到一个示例,用于创建一个将 vs-2019 映射到 vs-2015 的 "Web Forms with Master" 应用程序,使用: Murach 的 ASP.NET 4.6 和 C# 2015, 微软 Visual Studio 社区 2019, Visual Studio 16.4.3
vs-2015 版本有一个选项供用户创建带有主应用程序的 Web 表单。按钮 "Web Form with Master" 通常在书籍和在线教程中进行说明,引导学习者逐步完成以达到预期结果。那个按钮不见了,功能并没有消失。
vs-2019 中带有 master 选项的 Web 表单称为 "Web API",可以在 "Create New Web Application" wizard/gui 屏幕上启用。
映射步骤
查看插图以在 vs-2019 中创建母版页 ASP.NET 应用程序。如何启用 Web API 和 Site.Master
使用 vs-2019 运行,用户使用以下工具栏选项激活新项目 gui/wizard:文件 -> 新建 -> 项目...
Wizard/GUI 对比 2019
在 ~ image 3 missing ~ next ~ ASP.NET Web Application (DOT.NET) ~
结果
加点看漏图三:i stack imgur com/FpKBb png