CanDoItAll.CodeAnalytics.Application
0.3.0
dotnet add package CanDoItAll.CodeAnalytics.Application --version 0.3.0
NuGet\Install-Package CanDoItAll.CodeAnalytics.Application -Version 0.3.0
<PackageReference Include="CanDoItAll.CodeAnalytics.Application" Version="0.3.0" />
<PackageVersion Include="CanDoItAll.CodeAnalytics.Application" Version="0.3.0" />
<PackageReference Include="CanDoItAll.CodeAnalytics.Application" />
paket add CanDoItAll.CodeAnalytics.Application --version 0.3.0
#r "nuget: CanDoItAll.CodeAnalytics.Application, 0.3.0"
#:package CanDoItAll.CodeAnalytics.Application@0.3.0
#addin nuget:?package=CanDoItAll.CodeAnalytics.Application&version=0.3.0
#tool nuget:?package=CanDoItAll.CodeAnalytics.Application&version=0.3.0
CanDoItAll CodeAnalytics for .NET 10
Inspect C# solutions and projects with Roslyn and MSBuild. The engine builds architecture snapshots with project dependencies, service registrations, symbols and EF Core model facts. A separate live query selects impacted tests from changed source files and ranges.
Use the engine
In the executable project that opens the workspace, install the application facade. It brings in the seven engine libraries.
dotnet add package CanDoItAll.CodeAnalytics.Application
The Workspace package passes Roslyn's build-host files through to the executable. MSBuild Locator loads build assemblies from the installed SDK. Declare the following runtime exclusions in the executable project to keep NuGet from copying competing assemblies into its output.
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" Version="18.8.2" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.NET.StringTools" Version="18.8.2" PrivateAssets="all" ExcludeAssets="runtime" />
</ItemGroup>
Projects that only use domain models or render stored snapshots can reference Domain or Rendering directly.
The analyzing process needs a .NET SDK that can build the target workspace. Restore the target solution first. Register the engine services using the composition example. Supply a writable directory for snapshots and exports.
- Use
ICodeAnalyticsApplicationService.BuildSnapshotAsyncto build or reuse a snapshot. Pass its ID to query dependencies, symbols, findings, or Markdown and Mermaid exports. - Use
ITestImpactAnalysisService.AnalyzeAsyncwith the changed paths and test workspaces to get test selectors, workspace health, and diagnostics.
Libraries
| Package suffix | Responsibility |
|---|---|
| Application | Snapshot orchestration, queries and live test-impact selection |
| Abstractions | Service contracts, requests and results |
| Domain | Snapshot, fact and diagnostic models |
| Workspace | SDK discovery, MSBuild workspace loading and source inventory |
| Facts | Symbol, DI, persistence and test-impact facts |
| Analysis | Findings and architecture insights |
| Rendering | Markdown and Mermaid exports |
| Storage | File-system snapshot and export storage |
| 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. |
-
net10.0
- CanDoItAll.CodeAnalytics.Abstractions (>= 0.3.0)
- CanDoItAll.CodeAnalytics.Analysis (>= 0.3.0)
- CanDoItAll.CodeAnalytics.Domain (>= 0.3.0)
- CanDoItAll.CodeAnalytics.Facts (>= 0.3.0)
- CanDoItAll.CodeAnalytics.Rendering (>= 0.3.0)
- CanDoItAll.CodeAnalytics.Storage (>= 0.3.0)
- CanDoItAll.CodeAnalytics.Workspace (>= 0.3.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.