HC.Dev
1.7.1
dotnet tool install --global HC.Dev --version 1.7.1
dotnet new tool-manifest
dotnet tool install --local HC.Dev --version 1.7.1
#tool dotnet:?package=HC.Dev&version=1.7.1
nuke :add-package HC.Dev --version 1.7.1
Dev
A .NET tool designed to simplify common development tasks for .NET projects.
Installation
You can install the tool globally using the .NET CLI:
dotnet tool install --global HC.Dev
To update to the latest version:
dotnet tool update --global HC.Dev
Features
Launch Solution or Project
The default command launches the current solution in your default IDE or project in Visual Studio Code.
dev
# or
dev launch
Bump Version
Bumps the version of all projects in the current solution or the current project.
dev bump [major|minor|patch|revision]
The bump command supports the following options:
major
: Increments the major version (e.g., 1.0.0 → 2.0.0)minor
: Increments the minor version (e.g., 1.0.0 → 1.1.0) - Defaultpatch
: Increments the patch version (e.g., 1.0.0 → 1.0.1)revision
: Increments the revision version (e.g., 1.0.0.0 → 1.0.0.1)
Bump and Commit Version
Bumps the version of all projects in the current solution or the current project and creates a git commit and tag for the new version.
dev bump-commit [major|minor|patch|revision]
The bump-commit
command supports the following options:
major
: Increments the major version (e.g., 1.0.0 → 2.0.0)minor
: Increments the minor version (e.g., 1.0.0 → 1.1.0) - Defaultpatch
: Increments the patch version (e.g., 1.0.0 → 1.0.1)revision
: Increments the revision version (e.g., 1.0.0.0 → 1.0.0.1)
This command will:
- Update the version in the
.csproj
or all projects in the.sln
. - Stage the changes using
git add
. - Create a commit with the message
build: {version}
. - Tag the commit with the new version.
Build Solution or Project
Builds the current solution or project in Release mode.
dev build
If a build.cmd
(Windows) or build.sh
(Linux/macOS) file exists in the same directory, it will be used instead.
Frontend Building
Runs the Vidyano frontend builder in the current directory using Docker.
dev frontend
This command uses the ghcr.io/stevehansen/vidyano-frontend-builder
Docker image to build your frontend.
Help
Displays help information.
dev help
Command Aliases
The following aliases are available for commonly used commands:
Alias | Command |
---|---|
b | build |
h | help |
f | frontend |
v | bump |
vc | bump-commit |
License
This project is licensed under the MIT License. See the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
This package has no dependencies.