vue.js - .net 核心 + vue + coalescevue
问题描述
我试图使用这个包
https://github.com/IntelliTect/Coalesce.Vue.Template
在使用模板创建一个新的 Coalesce 项目的标题下,它说:
Run dotnet coalesce to trigger Coalesce's code generation.
但是,当我尝试这样做时,我收到了消息
dotnet : No executable found matching command "dotnet-coalesce"
我在文档中找不到任何进一步表明我遗漏任何东西的信息,因此我们将不胜感激
解决方案
您应该dotnet coalesce
在web 项目的根目录中运行。
假设我添加了一个新的 EF 实体,例如(我使用 newproject 作为项目名称只是为了测试):
namespace newproject.Data.Models
{
public class Person
{
public int PersonId { get; set; }
public string Name { get; set; }
public DateTimeOffset? BirthDate { get; set; }
}
}
在数据项目中使用Run dotnet ef migrations
add Init(Init 可以是任何名称)来创建初始数据库迁移:
PS D:\nanyu\newproject\newproject.Data> dotnet ef migrations add Init
接下来dotnet coalesce
在 web 项目的根目录中运行:
PS D:\nanyu\newproject\newproject.Data> cd D:\nanyu\newproject\newproject.Web
PS D:\nanyu\newproject\newproject.Web> dotnet coalesce
推荐阅读
- c++ - 编辑文本文件中的项目c ++
- firebase - 如何检查变量是否是 firstore firebase 函数中的文档实例或集合引用?
- javascript - 等待正常功能完成后再继续?
- python - VS 代码无法导入本地 python 模块
- android - 应用程序没有收到 RECEIVE_BOOT_COMPLETED 广播
- reactjs - 您宁愿预先进行多个异步查询并将其传递给您的子组件,还是拆分它们?
- excel - Excel公式计算5分中的平均评分
- c++ - 使用随机访问迭代器增量 > 1 进行迭代的规范方法?
- python-3.x - 使用日期工具。解析器来解释时区,但解析不会识别 tzinfos?
- python - 您好,我想提取一个网站并将数据存储在 excel 文件中