Asp.net core mvc .模型不会出现在“使用项目名称”中;模型“;在asp core2空应用程序中
我从一个空模板开始,并在aspcore2 mvc模板上执行以下操作,但当我尝试使用MyProject.Models时。Models不仅出现在.Controller中Asp.net core mvc .模型不会出现在“使用项目名称”中;模型“;在asp core2空应用程序中,asp.net-core-mvc,Asp.net Core Mvc,我从一个空模板开始,并在aspcore2 mvc模板上执行以下操作,但当我尝试使用MyProject.Models时。Models不仅出现在.Controller中 using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Diagnostics; using Microsoft.AspNetCore.Mvc; using Webeu.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Webeu.????
namespace Webeu.Controllers
{
public class HomeController : Controller
{
}
}
通过在“模型”文件夹中添加新模型解决了此问题。我猜它是如何工作的(Models文件夹不能为空)