Grad.CsLib.Tool
2.0.12
dotnet tool install --global Grad.CsLib.Tool --version 2.0.12
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Grad.CsLib.Tool --version 2.0.12
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Grad.CsLib.Tool&version=2.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Grad.CsLib.Tool --version 2.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CsLib.Tool
cslib is a dotnet tool designed to automate common development tasks
like database model generation and OpenAPI spec updates in Graduate College projects.
Installation
Install the tool locally:
dotnet tool install --local Grad.CsLib.Tool
Commands
dotnet tool run cslib -- rebuild-models: Runs migrations in a temporary Docker container and regenerates models.dotnet tool run cslib -- openapi: Exports Swagger/OpenAPI JSON and builds the TypeScript client.
Project Requirements
The tool expects the following structure in the project it is run from:
- A
*Data.csprojproject (e.g.,MyProject.Data.csproj). - A
*Server.csprojproject (e.g.,MyProject.Server.csproj). - A
spec/directory (foropenapicommand). - A
.connection-stringfile (forrebuild-modelscommand).
The .connection-string file should contain connection string elements with line breaks
instead of semicolons. For example:
Server=example.org
Database=Example
Encrypt=True
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.