Installing Project Templates
Install the Scaleout.Modules.Templates package to make the ScaleOut Active Caching module templates available through .NET Core’s dotnet new
command.
Background
.NET’s dotnet
command provides commands for creating, managing, and running .NET projects. Third-party .NET project templates can be installed from NuGet.org using the dotnet new install
command.
Note
Once a custom project template is installed using dotnet new install
, it also becomes available in Visual Studio’s New Project dialog.
Prerequisites
The .NET 8 SDK (or higher).
Installation
dotnet new install Scaleout.Modules.Templates
Verify that the template was installed using the --help
flag:
C:\mydir> dotnet new msgmodule --help
ScaleOut Message Module Package (C#)
Author: ScaleOut Software, Inc.
Usage:
dotnet new msgmodule [options] [template options]
Options:
-n, --name <name> The name for the output being created. If no name is specified, the name of the output directory
is used.
-o, --output <output> Location to place the generated output.
--dry-run Displays a summary of what would happen if the given command line were run if it would result in a
template creation.
--force Forces content to be generated even if it would change existing files.
--no-update-check Disables checking for the template package updates when instantiating a template.
--project <project> The project that should be used for context evaluation.
-lang, --language <C#> Specifies the template language to instantiate.
--type <project> Specifies the template type to instantiate.
Template options:
(No options)
Updating
The update
command checks NuGet.org for updates for all of the templates that are installed on the local system.
dotnet new update
Uninstall
dotnet new uninstall Scaleout.Modules.Templates