How to Successfully Build Windows Terminal

All new Windows Terminal

Windows Terminal is a new, modern, feature-rich, productive terminal application for command-line users. It includes many of the features most frequently requested by the Windows command-line community including support for tabs, rich text, globalization, configurability, theming & styling, and more.

  1. Windows build 1903
  2. Visual Studio 2017
  3. Git
  4. Ubuntu Terminal

Installing Windows Build 1903

At first you would have to register to the windows insider program

  1. Go to settings.
  2. Click Update and Security .
  3. Click Windows Insider Program.
Windows Insider Programme

4. Register for the program.

5. Update your windows.

If You Get errors while updating windows

You might encounter errors like windows cannot be updated because your device or service is not updated.

Error!!!

To fix this error you can download the windows 1903 ISO.

1.Download the ISO from https://drive.google.com/open?id=1M0NeGLfFrrE1Fo3dYVStIu6czzGdPoeT

2. Turn off the internet.

3. Click the ISO file.

Inside the ISO File

4. Open Setup File.

5. Follow the steps and update windows.

Visual Studio 2017

All might ask this question,

Why Visual Studio 2017 when there is Visual Studio 2019??

The answer is simple because no one love errors.

If you try to build Windows Terminal using Visual Studio 2019 you would probably find 12 errors.

Instead without wasting further time go download Visual Studio 2017 from https://developerinsider.co/download-visual-studio-2017-web-installer-iso-community-professional-enterprise/

  1. After Installing open the setup.
  2. Then you would have to tick the check boxes,

1.Desktop development with c++

2. Universal Windows Platform Development

3. Windows 10 SDK (10.0.17134.0) or the latest one.

3. Install Visual Studio 2017

Git

You would require git commands in cmd to build the windows terminal.

For that you would have to first download git from https://git-scm.com/

Building Windows Terminal

  1. Open Command Prompt.
  2. Now follow the commands one by one

If you have both Visual Studio 2019 as well as Visual Studio 2017 you might have to use the command

3. Now Enter start .

4. This will open the File Explorer and Open OpenConsole.sln

5. After the Visual Studio is opened you would have to just change the Processor x64 or x86 and change Debug to release.

Select Processor

To Know the type of processor

  1. Go to This PC.
This PC

2. Right click select Properties

Properties

3. Now go to Settings

4. Select Update & Security

5. Select For Developers

For developers

6. Select Developer mode.

7. Now Go back to Visual Studio and From Build Tab Select Deploy Solution.

8. Windows Terminal would be successfully Deployed.

Adding Extra terminals in Windows Terminal

When the windows terminal is deployed you would get something like this..

Windows Terminal

Here I have Ubuntu and the new Power-Shell but you would actually see only old Power-Shell and CMD.

For getting Ubuntu follow the steps,

  1. Go to search and search run
  2. Go to %localappdata%\Packages
Run

3. Then go to WindowsTerminalDev_8wekyb3d8bbwe.(folder name might be different but WindowsTerminalDev would be there)

4. Open folder RoamingState.

5. Replace the files in the folder with the files from https://github.com/Pai026/windows

6. Just Select Clone or Download in GitHub and download the zip file extract and paste in RoamingState Folder.

UBUNTU

  1. Now go to Microsoft Store and install Ubuntu.
Microsoft Store

2. After installation go to control panel.

3. Select Programs And Features.

Programs and Features

4. Select Turn Windows Features on or off

Windows Features

5. Tick Windows Subsytem for Linux.

6. Then Open Ubuntu from Start which would Successfully install Ubuntu terminal.

Ubuntu

Additional :-

You can add any number of terminals to the Windows Terminal by just adding the corresponding terminal to profile.json code.

For example in my Windows Terminal I have the new one and also old version of Power-Shell. I just installed the Newest version of Power-Shell (PowerShell 6) and just cloned the same PowerShell code and changed

“commandline”: “powershell.exe” to

“commandline”: “pwsh.exe”

Which is the executable file of PowerShell 6.

I failed 5 times to successfully build this Windows Terminal and I hope this blog would help everyone reduce that number to 0.

If you encounter any errors feel free to mail me at, abhirampai1999@gmail.com

Web Dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store