ConvA is a command-line tool for converting project references to/from DLL references.
The tool takes a path to a repository, a conversion type, a path to a project to convert, and a version of package reference as arguments. It then converts the project references based on the provided conversion type.
There are two ways to install ConvA:
- Using .NET CLI: Clone the repository and build the tool using .NET CLI.
git clone https://github.com/yourusername/conva.git
cd conva
dotnet build
- Using Homebrew: If you're on a Mac, you can use the Homebrew package manager to install ConvA.
brew install nevse/tap/conva
You can run the tool with the following command:
dotnet run -- [path to repo] -t [conversion type] -p [path to project] --patch-version [version]
The arguments are:
path to repo
: The path to the working repository.-t, --type
: The project conversion type. Possible values areProj
,Proj2
,Dll
,Package
,Props
.-p, --path
: The path to the project to convert.--patch-version
: The version of package reference.
Proj
: Converts to project references.Proj2
: Converts to project references (alternative method).Dll
: Converts to DLL references.Package
: Converts to package references.Props
: Converts to property references.
The tool uses a configuration file named convacfg.json
located in the application data folder. The configuration file contains the repository path and the conversion type.
To build the tool, run:
dotnet build
To run the tool, use:
dotnet run -- [arguments]
Replace [arguments]
with the arguments described in the Usage section.