cai.analyzers
0.20.0
dotnet add package cai.analyzers --version 0.20.0
NuGet\Install-Package cai.analyzers -Version 0.20.0
<PackageReference Include="cai.analyzers" Version="0.20.0" />
paket add cai.analyzers --version 0.20.0
#r "nuget: cai.analyzers, 0.20.0"
// Install cai.analyzers as a Cake Addin #addin nuget:?package=cai.analyzers&version=0.20.0 // Install cai.analyzers as a Cake Tool #tool nuget:?package=cai.analyzers&version=0.20.0
About
This has analyzer for CAI apis
Steps
- Create a new asp.net web api project
- Add HotChocolate.AspNetCore > 14.2.0, HotChocolate.Data >= 14.2.0, Wolverine > 3.4.0 and Cai.Abstraction
- Setup HotChocolate and Wolverine as needed. Two helper functions have been provided - builder.addCai(...) and app.useCai(...)
- Apply the attributes Rest, Query and Mutation as needed.
- Apply RemoteHandler or Distributed to use Nats as the message broker in addition to Wolverine.
- Apply AutoLog to log all requests.
- Nats.Net#2.5.5 required
Known Issues
Due to a limitation with HotChocolate, ensure that there is at least 1 query for graphql to work.
Usage
Add the package with the following properties to cai.analyzers: OutputItemType="Analyzer" ReferenceOutputAssembly="false"
Breaking Changes
v0.20.0 is a breaking change.
- Nats.Net v2.5.5 required
- OpenTelemetry is required
Sample packages
<ItemGroup> <PackageReference Include="HotChocolate.AspNetCore" Version="14.2.0" /> <PackageReference Include="HotChocolate.Data" Version="14.2.0" /> <PackageReference Include="NATS.Net" Version="2.5.5" /> <PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.10.0" /> <PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.10.0" /> <PackageReference Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.7.0-rc.1" /> <PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.10.0" /> <PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.10.1" /> <PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.10.0-beta.1" /> <PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.10.0" /> <PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.10.0" /> <PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.10.0-beta.1" /> <PackageReference Include="Ulid" Version="1.3.4" /> <PackageReference Include="WolverineFx" Version="3.4.0" /> </ItemGroup>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
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 |
---|---|---|
0.20.0 | 20 | 1/8/2025 |
0.10.6 | 140 | 11/2/2024 |
0.10.4 | 191 | 8/5/2024 |
0.10.3 | 228 | 3/13/2024 |
0.10.2 | 288 | 3/13/2024 |
0.10.1 | 111 | 3/13/2024 |
0.10.0 | 302 | 1/29/2024 |
0.0.9 | 198 | 1/20/2024 |
0.0.8 | 104 | 1/19/2024 |
0.0.7 | 121 | 1/12/2024 |
0.0.6 | 136 | 1/5/2024 |
0.0.5 | 107 | 1/5/2024 |
0.0.4 | 104 | 1/5/2024 |
0.0.3 | 123 | 1/4/2024 |
0.0.2 | 124 | 1/1/2024 |