-
-
Notifications
You must be signed in to change notification settings - Fork 12
Tools
The following tools are available for Consolonia
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
The PreviewHost is a tool which enables a live preview of a consolonia axaml file, or a consolonia project.
To install the tool, you can use the following command:
dotnet tool install -g Consolonia.PreviewHost
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
- Open the solution in Visual Studio.
- Open a Terminal (View -> Terminal).
- run the following command
Consolonia.PreviewHost .
To integrate the tool with Visual Studio Code, you can use the following steps:
- Open the project directory in Visual Studio Code.
- Open a terminal inside of visual studio code
- run the following command
Consolonia.PreviewHost .