microsoft / microsoft/vscode-dotnettools

[SUGGESTION] C# Dev Kit - Add appropriate .gitignore for proper Git initialization

Open
#751 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-solution enhancement
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the feature you'd like

During a fresh Solution creation, by creating a first Project, there is no "Option" for setting up Git which is understandable since the Initialize Button exists in the Source Control of Visual Studio Code. Either in the initial Solution creation or a hook to the Initialize Button of Source Control, it would be good to inject a reasonable .gitignore file such as at: https://github.com/github/gitignore/blob/main/VisualStudio.gitignore so the first check in after a build doesn't bring a number of unwanted Derived Objects into the Source Repo, getting rid of them after the fact can be a challenge.

Alternatives considered

I currently manually pull down a .gitignore or at least manually enter:

.vs/
.vscode/*
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
Environment Information
  • OS Mac 14.1.1
  • VSCode 1.48.2
  • C# Dev Kit 1.0.14

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing fresh Solution creation and the Source Control Initialize button in the C# Dev Kit and VS Code integration. Compare the requested VisualStudio.gitignore entries with the existing project-generation flow; done means a new solution can initialize Git with a suitable .gitignore before build artifacts are committed.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.