---
title: "Build spatial-compiler from source on Windows with Visual Studio 2022"
description: "Build the spatial-compiler program on Windows with Visual Studio 2022 and Python 3: fetch third-party code, run build.bat, then install.bat for the plugin."
canonical: https://appliedmanifold.com/docs/build/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Docs](https://appliedmanifold.com/docs/)
3.  Build from source

DOCS // SPATIAL.COMPILER

# Build from source on Windows

On Windows with Visual Studio 2022 (the C++ workload) and Python 3, run `python scripts\fetch_third_party.py`, `scripts\build.bat` and `scripts\install.bat` from a clone of the repository.

## Build

The build runs on Windows with Visual Studio 2022 (the C++ workload) and Python 3. From a clone of the repository, run:

cmd

```
python scripts\fetch_third_party.py
scripts\build.bat
scripts\install.bat
```

`fetch_third_party.py` runs once and downloads the pinned third-party code listed in `THIRD_PARTY.md`. `build.bat` builds the program, and `install.bat` copies it to `%USERPROFILE%\.spatial-compiler\bin`, where the [Claude plugin](https://appliedmanifold.com/docs/install/) finds it.

## Tests

`build\spatial_test.exe` runs all tests; a name filter runs some. See [Verified setup](https://appliedmanifold.com/docs/verified-setup/).
