【发布时间】:2020-12-01 07:37:11
【问题描述】:
我正在尝试从命令生成驱动程序..
dotnet aspnet-codegenerator controller -name EmployeeController -m Employee -dc EmsContext --relativeFolderPath Controllers --useDefaultLayout --referenceScriptLibraries
Attempting to figure out the EntityFramework metadata for the model and DbContext: 'Employee'
A file matching the name MvcControllerWithContext.cshtml was not found within any of the folders:
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
根据文档,这是最后一步,我从这个框架开始,但我无法摆脱这个状态。我正在使用 Ubuntu 并且全部通过终端。如果有人能告诉我如何解决它,我将不胜感激。
【问题讨论】:
-
我在ubuntu上也遇到了同样的问题。
标签: c# .net-core entity-framework-core asp.net-core-mvc ubuntu-18.04