diff --git a/docs/zh-cn/develop/development.md b/docs/zh-cn/develop/development.md index 0e774dc31f..931127d563 100644 --- a/docs/zh-cn/develop/development.md +++ b/docs/zh-cn/develop/development.md @@ -39,22 +39,22 @@ icon: iconoir:developer 5. 配置编程环境 + - 下载并安装 `CMake` - 下载并安装 `Visual Studio 2022 community`, 安装的时候需要选中 `基于 C++ 的桌面开发` 和 `.NET 桌面开发`。 - - 下载并安装 `cmake` 6. 执行 cmake 项目配置 ```cmd mkdir -p build - cmake -B build + cmake -G "Visual Studio 17 2022" -B build ``` 6. 双击打开 `build/MAA.sln` 文件,Visual Studio 会自动加载整个项目。 7. 设置 VS - - VS 上方配置选择 `Debug` `x64` (如果编译 Release 包 或 ARM 平台,请忽略这步) - - 右键 `MaaWpfGui` - 属性 - 调试 - 启用本地调试(这样就能把断点挂到 C++ Core 那边了) + - VS 上方配置选择 `Debug` `x64` - 右键 `MaaWpfGui` - 设为启动项目 + - 按 F5 运行 8. 到这里,你就可以愉快地 ~~瞎 JB 改~~ 发电了 9. 开发过程中,每一定数量,记得提交一个 Commit, 别忘了写上 Message