Skip to content
Tom Laird-McConnell edited this page Dec 24, 2024 · 6 revisions

The following tools are available for Consolonia

Consolonia dotnet new templates

The dotnet new templates for consolonia make it so that you can create a consolonia project easily.

To install the templates:

dotnet new install Consolonia.Templates

To create a project in a folder:

dotnet new consolonia.app

Consolonia.PreviewHost

The PreviewHost is a tool which enables a live preview of a consolonia axaml file, or a consolonia project.

image

Installation

To install the tool, you can use the following command:

dotnet tool install -g Consolonia.PreviewHost

Usage

To use the tool, you can use the following command:

Consolonia.PreviewHost <path-to-axaml-file>|<path-to-project-file>|<path-to-project-directory>

It will monitor the file or directory for changes, and will automatically update the preview when changes are detected.

Run the following command to monitor the project or folder:

Conoslonia.PreviewHost <path-to-project-file-or-folder>

Run following command to monitor a given .axaml file.

Conoslonia.PreviewHost <.axaml file name>

NOTE: In single file mode the tool will exit when you hit escape key

Running inside Visual Studio

  1. Open the solution in Visual Studio.
  2. Open a Terminal (View -> Terminal).
  3. run the following command Consolonia.PreviewHost .

Running inside Visual Studio Code

To integrate the tool with Visual Studio Code, you can use the following steps:

  1. Open the project directory in Visual Studio Code.
  2. Open a terminal inside of visual studio code
  3. run the following command Consolonia.PreviewHost .