DimonSmart.CopilotInstructions.Template 1.0.3

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet new install DimonSmart.CopilotInstructions.Template::1.0.3
                    
This package contains a .NET Template Package you can call from the shell/command line.

CopilotInstructions Template

NuGet template that scaffolds a reusable copilot-instructions.md file with common C# coding standards.

Using the published template

# install from NuGet
dotnet new install DimonSmart.CopilotInstructions.Template

# create the instructions file (automatically placed inside .github)
dotnet new copilot-instructions

# customize the generated filename (still inside .github)
dotnet new copilot-instructions --filename Copilot.md

The template now places the file inside .github automatically so you don't have to remember the --output flag. A custom --filename still ends up as .github/<your-name>.md.

Development workflow

  1. Update CopilotInstructions.Template/content/copilot-instructions/.github/copilot-instructions.md when the guidance changes.
  2. Adjust metadata in CopilotInstructions.Template/content/copilot-instructions/.template.config/template.json if you need new parameters or post actions.
  3. Bump the package version in the release tag (see below) before publishing.

If you want to test a build before pushing to NuGet:

dotnet pack CopilotInstructions.Template/TemplatePack.csproj --configuration Release --output artifacts

The command produces a .nupkg in the artifacts/ folder that you can install manually (for example, via dotnet new install ./artifacts/*.nupkg) before pushing it to NuGet.

Releasing to NuGet

Publishing is automated through GitHub Actions. Create and push a tag following the v* pattern (for example, v1.0.0). The workflow will:

  1. Pack the template with the version taken from the tag name (without the leading v).
  2. Push the package to NuGet using the NUGET_API_KEY secret. Optionally, override the feed URL with a NUGET_SOURCE secret.

Make sure the repository secrets NUGET_API_KEY (and optionally NUGET_SOURCE) are configured before tagging a release.

  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 327 11/12/2025
1.0.3 315 11/12/2025
1.0.2 319 11/12/2025
1.0.1 319 11/12/2025
1.0.0 315 11/12/2025