This document provides instructions on how to use and install the DPB2.Plugin.Template package. The template is designed to help developers streamline the process of creating plugins for their applications.
To install the template package, run the following command in your terminal:
dotnet new --install .\DPB2.Plugin.Template.x.x.x.nupkg --forceNotes:
- Ensure that you have the
.nupkgfile downloaded and located in the specified path (.\). - The
--forceoption ensures that any existing installation of the same template is overwritten. - Replace
.\DPB2.Plugin.Template.x.x.x.nupkgwith the full path to the.nupkgfile if it is not in the current directory.
To set the path to the DPB2 folder, run the following command in your terminal:
setx DPB2 <path-dpb2-folder>Parameters:
<path-dpb2-folder>: Replace this with the full path to your DPB2 folder.
Example:
setx DPB2 "C:\Users\YourUsername\DreamPoeBot2"After successful installation, you can create a new project using this template by executing the following command:
dotnet new <template-name> -n <project-name>Parameters:
<template-name>: Replace this with the name of the template provided by theDPB2.Plugin.Templatepackage.<project-name>: Replace this with the desired name for your new project.
Example:
dotnet new DPB2Project -n MyNewPluginThis will create a new project named MyNewPlugin using the DPB2.Plugin.Template.