-
Notifications
You must be signed in to change notification settings - Fork 225
Building MIEngine for VSCode
MIEngine can be built on Windows, macOS, and Unix. However, for MIEngine to be compiled on Unix/macOS, you will need to build MIDebugEngine-Unix.sln instead of MIDebugEngine.sln.
You can do the same steps as building for Visual Studio, but to produce the VS Code adapter layout (OpenDebugAD7 + native deps staged under bin\DebugAdapterProtocolTests\<Configuration>\extension\debugAdapters) the easiest path is eng\Scripts\CI-Build.ps1 from a VS Developer Command Prompt:
eng\Scripts\CI-Build.ps1 -Configuration Debug -TargetPlatform vscodeThis script restores NuGet, builds MIDebugEngine.sln with msbuild, and dotnet publishes OpenDebugAD7 into the staged adapter directory.
Alternatively, to build only the cross-platform subset with the .NET SDK (no msbuild needed), use the macOS/Linux flow below against MIDebugEngine-Unix.sln.
- You need to install the .NET SDK
- Run
dotnet build src/MIDebugEngine-Unix.sln - Run
./PublishOpenDebugAD7.sh -c Debug
This will publish a version of OpenDebugAD7 in ./bin/Debug/vscode/<RID>/publish/ that you can use to test.