我正在尝试基于.NET Core 3,实体框架Core的Windows WPF。
由于我的软件包之一不支持AnyCPU的目标平台。我已将目标更改为x64。解决方案的构建已在VS2019中成功完成。
但是,当我在EF的数据上下文中添加一些新属性时。我必须添加新的迁移来更新数据库设计。但是命令
dotnet ef migrations add
最终导致“构建失败”。错误是平台问题,程序包回答了AnyCPU目标的问题。
Is there any way to let the building process initiated by the dotnet ef migrations
command, use the x64 platform?
提前致谢