Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 9, 2025

Summary

The dotnet new gitignore template was missing from the SDK templates documentation table despite being a valid, preinstalled template since .NET SDK 3.0.

Added gitignore template entry to the Preinstalled templates table:

  • Template: .gitignore file
  • Short name: gitignore
  • Tags: Config
  • Introduced: 3.0
  • Template options: None

Placed alphabetically among Config templates, between EditorConfig and global.json. Formatted consistently with other option-less templates (plain text short name without brackets/link).

Original prompt

This section details on the original issue you should resolve

<issue_title>[New article] Configuring a .NET project for Git</issue_title>
<issue_description>### Describe the issue or suggestion

There's no documentation for the dotnet new gitignore command or other setup related to configuring .NET projects for Git integration.

It looks like this was originally addressed in #18262, but dotnet new <TEMPLATE> page has since removed any mention of dotnet new gitignore.

At a minimum, we could add a remark similar to what we have for global.json on that docs page.</issue_description>

<agent_instructions>Add a row to the table with the details for gitignore: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new-sdk-templates#preinstalled-templates. The Template is: gitignore, the Short name is: gitignore, the Tag is: Config, and this was Introduced in: 3.0. There are no template options to link to from the short name.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@meaghanlewis @MackinnonBuck I'm going to add details about `dotnet new gitignore` to: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new-sdk-templates#preinstalled-templates

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-new-sdk-templates.md Default templates for dotnet new

Copilot AI changed the title [WIP] Add documentation for configuring .NET project gitignore Add gitignore template to dotnet new SDK templates documentation Dec 9, 2025
Copilot AI requested a review from meaghanlewis December 9, 2025 18:35
@meaghanlewis meaghanlewis marked this pull request as ready for review December 9, 2025 20:21
@meaghanlewis meaghanlewis requested a review from a team as a code owner December 9, 2025 20:21
Copilot AI review requested due to automatic review settings December 9, 2025 20:21
@meaghanlewis meaghanlewis enabled auto-merge (squash) December 9, 2025 20:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the missing gitignore template to the SDK templates documentation table. The template has been available since .NET SDK 3.0 but was previously undocumented in this reference table.

  • Added a new row for the .gitignore file template in the Preinstalled templates table
  • Correctly positioned alphabetically between EditorConfig and global.json
  • Followed the pattern for templates without template-specific options (no link/brackets on short name)

@meaghanlewis meaghanlewis merged commit 3b8933e into main Dec 10, 2025
11 checks passed
@meaghanlewis meaghanlewis deleted the copilot/add-gitignore-documentation branch December 10, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New article] Configuring a .NET project for Git

3 participants