Skip to content

How to run in Windows 10 Subsystem for Linux

sacheu edited this page Jul 21, 2020 · 2 revisions
  1. Install the Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/install-win10

  2. Download swift Toolchain from https://swift.org/download/#releases for the WSL installed in Step #1

  3. Unzip the toolchain from Step #2 and add to the path of WSL

    $ export PATH=/path/to/Swift/usr/bin:"${PATH}"

  4. Install swift dependencies by following https://swift.org/getting-started/#installing-swift

  5. Clone autorest.swift repo to WSL

  6. Build autorest.swift

    $ swift build

  7. Run autorest.swift

    $ swift run AutorestSwift