Grad.CsLib 2.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Grad.CsLib --version 2.0.8
                    
NuGet\Install-Package Grad.CsLib -Version 2.0.8
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Grad.CsLib" Version="2.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Grad.CsLib" Version="2.0.8" />
                    
Directory.Packages.props
<PackageReference Include="Grad.CsLib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Grad.CsLib --version 2.0.8
                    
#r "nuget: Grad.CsLib, 2.0.8"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Grad.CsLib@2.0.8
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Grad.CsLib&version=2.0.8
                    
Install as a Cake Addin
#tool nuget:?package=Grad.CsLib&version=2.0.8
                    
Install as a Cake Tool

CsLib

Graduate College C# common library for web application APIs and other related projects.

For API definitions, see:

Requirements

  • .NET Core 10
  • dotnet-ef: dotnet tool install --global dotnet-ef

CsLib Tool (cslib)

cslib is a dotnet tool designed to automate common development tasks like database model generation and OpenAPI spec updates.

Installation

Install the tool locally:

dotnet tool install --local Grad.CsLib.Tool

Commands

  • cslib models: Scaffolds EF Core database context and entity classes.
  • cslib rebuild-models: Runs migrations in a temporary Docker container and regenerates models.
  • 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.csproj project (e.g., MyProject.Data.csproj).
  • A *Server.csproj project (e.g., MyProject.Server.csproj).
  • A spec/ directory (for openapi command).
  • A .connection-string file (for models command).
Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.12 320 1/30/2026
2.0.11 141 1/29/2026
2.0.10 96 1/29/2026
2.0.9 92 1/29/2026
2.0.8 109 1/29/2026