设置 VS Code 后,安装构建工具并在此处完成教程:https : //code.visualstudio.com/docs/cpp/config-msvc
Visual Studio Code 无法找到用于编译 C++ 的 cl.exe。
我用硬盘驱动器上的正确路径替换了教程中的路径(cl.exe 在那里)。
// My Config
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.17763.0",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
}
// The tutorial build-task
{
"version": "2.0.0",
"tasks": [
{
"label": "msvc build",
"type": "shell",
"command": "cl.exe",
"args": [
"/EHsc",
"/Zi",
"/Fe:",
"helloworld.exe",
"helloworld.cpp"
],
"group": …Run Code Online (Sandbox Code Playgroud) 我将 Windows 桌面应用程序中的实体框架更新到 6.4 并了解了新功能。鉴于 EF 6.4 现在基于 EF Core 3.0,我想摆脱 .edmx 文件并使用 EF Core 提供的命令行脚手架选项。
如何从笨重的 .edmx 文件迁移到命令行生成?使用新的 EF(无需切换到 EF Core)是否可以实现这一点?
提前致谢!