.NET Commands
Commands for managing .NET projects.
All .NET commands require an open pull request. ๐
add projectโ
Adds a project to the solution file. Only applicable to .NET projects.
Usage:
@gstraccini add project <projectPath>
Parameters:
| Parameter | Required | Description |
|---|---|---|
projectPath | โ | The path to the .csproj file to add to the solution |
Example:
@gstraccini add project src/MyProject/MyProject.csproj
bump version ๐งชโ
Bumps the .NET version in .csproj files.
Usage:
@gstraccini bump version <version> [project]
Parameters:
| Parameter | Required | Description |
|---|---|---|
version | โ | The .NET version to set (e.g., net8.0, net9.0) |
project | โ | The .csproj file to update. Omitting this runs the command on all .csproj files in the repository/branch |
Examples:
@gstraccini bump version net9.0
@gstraccini bump version net9.0 src/MyProject/MyProject.csproj
This command is currently in development and may not be fully stable.
csharpierโ
Formats C# code using CSharpier. Only applicable to .NET projects.
Usage:
@gstraccini csharpier
dotnet centralised package converterโ
Converts projects to use centralized package management using central-pkg-converter. Only applicable to .NET projects.
Usage:
@gstraccini dotnet centralised package converter [autofix true|false]
Parameters:
| Parameter | Required | Description |
|---|---|---|
autofix | โ | Whether to automatically fix and apply the changes (true or false). Defaults to false |
Examples:
@gstraccini dotnet centralised package converter
@gstraccini dotnet centralised package converter autofix true
dotnet slnxโ
Migrates .sln files to the newer .slnx format using dotnet sln migrate. Only applicable to .NET projects.
Usage:
@gstraccini dotnet slnx
fix csproj ๐งชโ
Updates the .csproj file with the packages.config version of NuGet packages. Only applicable to .NET Framework projects.
Usage:
@gstraccini fix csproj
This command is currently in development and may not be fully stable.
nuget check updatesโ
Checks for NuGet package updates using dotnet-outdated. Only applicable to .NET projects.
Usage:
@gstraccini nuget check updates [filter]
Parameters:
| Parameter | Required | Description |
|---|---|---|
filter | โ | Filter to specific packages by name |
Examples:
@gstraccini nuget check updates
@gstraccini nuget check updates Newtonsoft.Json