dotnet-gitignore
1.3.0
dotnet tool install --global dotnet-gitignore --version 1.3.0
dotnet new tool-manifest
dotnet tool install --local dotnet-gitignore --version 1.3.0
#tool dotnet:?package=dotnet-gitignore&version=1.3.0
nuke :add-package dotnet-gitignore --version 1.3.0
dotnet-gitignore
This is a simple dotnet tool that extends the dotnet cli to generate a .gitignore file for Visual Studio/.NET projects.
Purpose
I like to use the dotnet cli to create projects while working with VSCode and it bugged me that I need to track down a .gitignore file every time I wanted to create a new project.
What it Does
The tool downloads the official Visual Studio .gitignore from GitHub. It also caches a copy in your user profile folder in the event that you are offline.
Install
To install use the dotnet cli tool install command:
dotnet tool install -g dotnet-gitignore
This will install the tool globally. See this page for more information.
Note: You likely will need to restart your terminal to update your path before the dotnet gitignore command will work.
Usage
The tool installs as a dotnet cli extension and can be run using:
dotnet gitignore
Currently the tool only accepts a single argument: the path where to .gitignore should be generated. If no path is specified, then the current working directory is used.
dotnet gitignore ../
Update
dotnet tool update -g dotnet-gitignore
Uninstall
dotnet tool uninstall -g dotnet-gitignore
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
- Target dotnet 5, 6 and 7.
- Remove support for dotnet core 2 and 3.
- Update to use main branch instead of master.