本项目是一个普通的 WinForm 项目,普通地使用 Visual Studio 开发。
Debug 模式还需要部署并启动 ks233/ja-learner-webview。
-
打开项目:在 VS Code 中打开
ja-learner项目。 -
打开远程容器:点击左下角的绿色按钮(通常显示为 "><" 或 "打开远程窗口"),然后选择 "Reopen in Container"。(确保 Docker 已安装并运行)
-
等待容器构建:VS Code 会自动下载并构建 devcontainer,这可能需要一些时间。
-
运行编译命令:
dotnet publish ja-learner.sln -c Release -r win-x64 --self-contained
-
构建 Vue.js 项目:
cd .. git clone https://github.com/ks233/ja-learner-webview cd ja-learner-webview npm install npm run build mv dist ../ja-learner/bin/Release/net6.0-windows/win-x64
-
完成编译:编译完成后,你可以在
bin/Release/net6.0-windows/win-x64目录下找到编译后的 exe 可执行文件。