Skip to content

Building MIEngine for VSCode

Gregg Miskelly edited this page Jun 18, 2026 · 2 revisions

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.

Windows

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 vscode

This 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.

macOS and Linux

  1. You need to install the .NET SDK
  2. Run dotnet build src/MIDebugEngine-Unix.sln
  3. Run ./PublishOpenDebugAD7.sh -c Debug

This will publish a version of OpenDebugAD7 in ./bin/Debug/vscode/<RID>/publish/ that you can use to test.

Clone this wiki locally