question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add optional argument to dotnet new for adding .gitignore

See original GitHub issue

Is your feature request related to a problem? Please describe.

Based off of Twitter thread for folks https://twitter.com/isaacrlevin/status/1571908208675147776

Describe the solution you’d like

Adding a new argument to dotnet new that will allow adding a .gitignore to the output of the command. For instance

dotnet new web --add-git

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
vlada-shubinacommented, Oct 3, 2022

We decided it falls in scope of https://github.com/dotnet/templating/issues/3208 or https://github.com/dotnet/templating/issues/2771, but there is no definite timeline on that yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add optional argument to dotnet new for adding .gitignore
Once you have a symbol defined, you'd add a postAction that has a condition that checks the symbol you defined earlier. I'd suggest...
Read more >
Easy to create .gitignore for the dotnet developers
Starting from SDK 3.0, there is a new parameter gitignore, which creates a dotnet gitignore file. The created file is a good starting...
Read more >
Creating Project Templates for dotnet – Part 2 – Optional Files
For our example I'm going to add in a ReadMe.md, a License.txt, an .editorconfig, and a .gitignore file. ... dotnet new gitignore.
Read more >
Create a template package for dotnet new - .NET
The dotnet new install command supports installing template packages ... The --output parameter creates the template for template package in ...
Read more >
Make your own custom .NET Core templates - Craft Bakery
NET Core templates! Steps: Install prerequisite tools; Templating tool dotnet new; Create template; Test template; Add custom parameters; Pack ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found