Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/logofx/cli-dotnet

Command-line interface for generating and managing desktop .NET apps
https://github.com/logofx/cli-dotnet

Last synced: about 4 hours ago
JSON representation

Command-line interface for generating and managing desktop .NET apps

Awesome Lists containing this project

README

        

# cli-dotnet
Command-line interface for generating LogoFX-based desktop .NET apps via `dotnet` tool

## Install templates pack

Install from source:
```
./devops/install-templates-pack.cmd
```

Install from package repo:
```
dotnet new --install LogoFX.Templates::0.4.2-beta.1
```

This command will install all `LogoFX` templates

## Create solution from the installed template

```
dotnet new logofx-wpf
```

The solution will be created in current folder with name of this folder. Use `-n` option to set custom solution name

```
dotnet new logofx-wpf -n
```

## Add model entity to existing project

Inside solution folder run

```
dotnet new logofx-entity -sn -n [--allow-scripts yes]
```

This command adds `` entity to `.Model` project; `I` contract to `.Model.Contracts` project; `Dto` dto to `.Data.Contracts.Dto` project.

If you didn't specify `--allow-scripts yes` parameter the template engine ask you to allow template script launch. This script will change `Mappers\MappingProfile` and `Module` (in `… .Model` project) for setup mapping between the DTO and the model.

## Azure Devops CI Status
[![Build Status](https://dev.azure.com/LogoFX/cli-dotnet/_apis/build/status/LogoFX.cli-dotnet?branchName=master)](https://dev.azure.com/LogoFX/cli-dotnet/_build/latest?definitionId=1&branchName=master)