LoginSignup
22
24

More than 3 years have passed since last update.

Windows Terminal Build(github.com/Microsoft/Terminal)

Last updated at Posted at 2019-05-07

間もなく、Windows Terminalがリリースされます。ここでは自前でビルドしてWindows Terminalを使う方法を紹介します。今まであまりにも使いづらかったWindowsのターミナル環境を快適にしてくれることでしょう。

github : https://github.com/Microsoft/Terminal

blog : https://devblogs.microsoft.com/commandline/introducing-windows-terminal/

VS2017の場合

VS2017でやれば普通に簡単にできると思います。ただ、VS2019の場合は、OpenConsole.slnを開いて修正するだけでは難しいみたいです。

$ git clone https://github.com/Microsoft/Terminal
$ cd Terminal
$ git submodule update --init --recursive;
$ scoop install nuget
$ nuget restore OpenConsole.sln;

# VS2017でOpenConsole.slnを開きます

# Windowsの設定で - Upgrade & Security - For Developers, modify App sources to Developer mode(開発者モード)にする

# ソリューションエクスプローラーの`ソリューション"openconsole"47プロジェクト`を右クリックして、ソリューションの配置を行う
# ただし、これは、最新がWindows Universal Runtime version 1.0.0.17763なので、`Windows Insider Program`に登録して、プレビュー版のWindows Buildが必要

Right click on CascadiaPackage(under Solution/Terminal), select Deploy Solution to install, then you'll find Windows Terminal (Preview) in start menu.

guide : https://github.com/microsoft/Terminal/issues/489

この記述は、ソリューションエクスプローラーのソリューション"openconsole"47プロジェクトを右クリックして、ソリューションの配置を行うことを言います。これによってスタートメニューにWindows Terminal (Preview)が表示されます。

ただし、これは、最新がWindows Universal Runtime version 1.0.0.17763なので、Windows Insider Programに登録して、プレビュー版のWindows Buildを試す必要があります。

Windows 1903 (build >= 10.0.18362.0)

VS2019の場合

追記 : VS2019でbuildするPRが取り込まれた模様

私の場合は、こちらの手順でやりました。ただし、WindowsTerminal.exeが動かない模様。なので、VS2017でやるのが正解です。

p:TargetPlatformVersion=10.0.17763.0の箇所はご自身がインストールしてるバージョンを指定します。

$ pwsh
$ git clone https://github.com/microsoft/Terminal.git
$ cd Terminal
$ git submodule init
$ git submodule update
$ nuget restore OpenConsole.sln
$ msbuild /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v142 /p:TargetPlatformVersion=10.0.17763.0 /p:PreferredToolArchitecture=x64 OpenConsole.sln

C2220 error : Open property of corresponding sub-project, navigate to C/C++ panel, change Treat Warnings As Errors option to No(/WX-);
x64, Debug, Releases;

C481 error : ファイルをutf-8で保存します。

Other errors: Other errors are encoding error of CJK characters, just modify corresponding file encoding to UTF-8 BOM(Notepad++ is recommended);

公式

$ git clone https://github.com/Microsoft/Terminal
$ cd Terminal
$ git submodule update --init --recursive
$ scoop install nuget
$ nuget OpenConsole.sln
# visual studioでOpenConsole.slnを開く、必要なものをインストール
$ msbuild OpenConsole.sln

Windows Terminal Setting

22
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
24