Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webmaster442/csproj
csproj is a simple tool to change properties of multiple C# projects
https://github.com/webmaster442/csproj
automation csproj csproj-tooling devops dotnet multi-project project-files tooling
Last synced: about 1 month ago
JSON representation
csproj is a simple tool to change properties of multiple C# projects
- Host: GitHub
- URL: https://github.com/webmaster442/csproj
- Owner: webmaster442
- License: mit
- Created: 2024-11-12T17:21:31.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-12T17:55:28.000Z (about 1 month ago)
- Last Synced: 2024-11-12T18:28:40.555Z (about 1 month ago)
- Topics: automation, csproj, csproj-tooling, devops, dotnet, multi-project, project-files, tooling
- Language: C#
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csproj
csproj is a simple tool to change properties of multiple C# projects
## Installation
```bash
dotnet tool install -g csproj
```## Provided commands
### targetframework
```
DESCRIPTION:
Set the target framework for the projectUSAGE:
csproj targetframework [OPTIONS]OPTIONS:
-h, --help Prints help information
-p, --project Project File Path. Can be a directory or a single project file. If not provided, the current
directory is used
-r, --recursive Recursive search for csproj files
-f, --filter Filter project files by name. Wildcards like * and ? are supported
-b, --backup Create a backup of the project file
-t, --target The target framework to upgrade to
-o, --old The old target framework to upgrade from
```Example: upgrade all csproj files in the current directory and subdirectories from netcoreapp3.1 to net9.0 recursively and create a backup of the original files:
```bash
csproj targetframework --recursive --backup --old netcoreapp3.1 --target net9.0
```Example: upgrade all csproj files in the current directory from netcoreapp3.1 to net9.0 which have the word "Web" in their name:
```bash
csproj targetframework --filter "Web*" --old netcoreapp3.1 --target net9.0
```### nullable
```
DESCRIPTION:
Set the nullable context for the projectUSAGE:
csproj nullable [OPTIONS]OPTIONS:
-h, --help Prints help information
-p, --project Project File Path. Can be a directory or a single project file. If not provided, the current
directory is used
-r, --recursive Recursive search for csproj files
-f, --filter Filter project files by name. Wildcards like * and ? are supported
-b, --backup Create a backup of the project file
-n, --nullability The nullability to upgrade to
```