Lite.Procedures.DotNet
1.0.0-rc2
This is a prerelease version of Lite.Procedures.DotNet.
dotnet add package Lite.Procedures.DotNet --version 1.0.0-rc2
NuGet\Install-Package Lite.Procedures.DotNet -Version 1.0.0-rc2
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="Lite.Procedures.DotNet" Version="1.0.0-rc2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lite.Procedures.DotNet" Version="1.0.0-rc2" />
<PackageReference Include="Lite.Procedures.DotNet" />
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 Lite.Procedures.DotNet --version 1.0.0-rc2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Lite.Procedures.DotNet, 1.0.0-rc2"
#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 Lite.Procedures.DotNet@1.0.0-rc2
#: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=Lite.Procedures.DotNet&version=1.0.0-rc2&prerelease
#tool nuget:?package=Lite.Procedures.DotNet&version=1.0.0-rc2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Lite.Procedures
Легковесный пайплайн процедур с интерцепторами для .NET: регистрация в DI, синхронный/асинхронный вызов, опциональная кодогенерация пайплайнов.
Установка окружения
- .NET SDK 10 — скачать.
- Опционально: mise (или rtx) для версий:
mise install(см..mise.toml). - Локальная установка одной командой:
- Windows:
.\install.ps1 - Linux/macOS:
./install.sh
- Windows:
- Dotnet-инструменты (CSharpier и др.):
dotnet tool restore(конфиг в.config/dotnet-tools.json). - Pre-commit:
pip install pre-commit(илиmise install), затемpre-commit install.
Сборка и тесты
dotnet restore Lite.Procedures.sln
dotnet build Lite.Procedures.sln -c Release
dotnet test Lite.Procedures.sln -c Release --no-build
Линт и формат
- Проверка формата и сборки/тестов:
python .config/run_lint.py
Варианты:run_lint.py format,run_lint.py build,run_lint.py test. - Форматирование C#:
dotnet format Lite.Procedures.sln(применить изменения) или через CSharpier:dotnet csharpier . - Pre-commit: при
pre-commit installперед коммитом запускаются проверки из.pre-commit-config.yaml(format verify, build, test).
IDE (VS Code / Cursor)
- Рекомендуемые расширения: см.
.vscode/extensions.json(C#, CSharpier). - Format on save и форматтер для C#: см.
.vscode/settings.json.
Релиз и NuGet
Релизы делаются с ветки release через теги. Публикация в NuGet — только при пуше тега вида v* с этой ветки. Подробно: docs/PUBLISHING.md.
Бенчмарки
См. BENCHMARKS.md.
Плейграунд (реальное приложение)
Минимальное ASP.NET Core приложение с Lite.Procedures — процедуры, контроллеры, DI (по аналогии с Lite.Validation playground):
dotnet run --project playground/Lite.Procedures.Playground/Lite.Procedures.Playground.csproj
- GET /echo?q=... — вызов процедуры Echo (возвращает строку).
- POST /order — тело
{ "productName": "...", "quantity": 1, "price": 10.5 }, возвращает созданный заказ.
| 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.
-
net10.0
- Lite.Procedures.Abstractions (>= 1.0.0-rc2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.