ASP.NET Core 2.1-脚手架不生成任何文件

时间:2018-11-27 22:10:44

标签: c# asp.net visual-studio-2017 scaffolding

ASP.NET的全新功能-对多种语言(HTML,CSS,PHP,perl python,shell,powershell)的经验有限,但没有任何深度。不是编码的“新手”,只是没有什么用。

无论如何,我正在尝试完成本教程:

https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-controller?view=aspnetcore-2.1

我第一次尝试生成脚手架,但是现在每次尝试生成脚手架VS2017都不会生成任何文件。

我正在尝试用来生成脚手架的班级:

using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisitorLog.Models
{
    public class VisitorLog
    { 
    public string VisitorName { get; set; }
    public int FloorNum { get; set; }
    public int OfficeNum { get; set; }
    public string Reason { get; set; }
    public DateTime InTime { get; set; }
    public DateTime OutTime { get; set; } 
    }
}

是带有包的.NET Core 2.1 Web App(非MVC):

Microsoft.AspNetCore.App 2.1.1
Microsoft.AspNetCore.Razor.Design 2.1.2
Microsoft.NETCore.App 2.1.0
Microsoft.VisualStudio.Web.CodeGeneration.Design 2.1.6

有人知道为什么不生成页面吗?谢谢

0 个答案:

没有答案
相关问题