Skip to content

Arthri/Belp.Templates

Repository files navigation

Belp.Templates

Latest NuGet Release

Templates for MSBuild projects and other files.

Available Item Templates

Directory.Build.props

Short Name: dbprops

Options

None

Directory.Build.targets

Short Name: dbtargets

Options

None

Project Item

Short Name: proj

Options

  • --sdk <sdk> (Optional): Specifies the SDK to put in <Project Sdk="...">.

Available Project Templates

None

Installation

Prerequisites

  • Install .NET 6 SDK or above.

Install using .NET CLI(NuGet)

  1. Open a terminal.
  2. Run dotnet new install Belp.Templates.

Install using .NET CLI(GitHub)

  1. Download the .nupkg from GitHub Releases.
  2. Open a terminal.
  3. Locate and navigate to the package.
  4. Run dotnet new install Belp.Templates.VERSION.nupkg.

Uninstallation

  1. Open a terminal.
  2. Run dotnet new uninstall Belp.Templates.

Usage

Use from .NET CLI

  1. Open a terminal.
  2. Navigate to the desired directory.
  3. Run dotnet new <Desired Template>. For example, dotnet new dbprops to create a new Directory.Build.props file.

Use from Visual Studio

Note: only project templates can be used from Visual Studio at the moment.

  1. Open Visual Studio 2022 or later.
  2. Click on "Create a new project".
  3. Find the desired project template.
  4. Fill out the requested fields.

Releases

No releases published