SharpView.Cli 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global SharpView.Cli --version 2.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SharpView.Cli --version 2.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SharpView.Cli&version=2.0.0
                    
nuke :add-package SharpView.Cli --version 2.0.0
                    

SharpView

Source-backed analysis of ASP.NET Core Web APIs, for people and for agents. Every result points at file:line:column, and anything the analysis cannot decide is reported as Unknown instead of being hidden.

dotnet tool install -g SharpView.Cli
cd MyApi && sharpview projects   # the .sln/.slnx (or single .csproj) in the current directory; or pass a path

Requires a .NET 10 (or newer) SDK. Restore the solution first: SharpView never restores, builds or edits the analysed code. Loading evaluates MSBuild projects and may run project tooling and source generators, so it is not a sandbox.

Commands

Command Answers
projects The <ProjectReference> tree with each project's framework, Nullable, whether nullable (or all) warnings are errors, and compiler warning counts. --mermaid saves it as a diagram.
exceptions Every explicit throw with its method, type and project.
exceptions --uncaught Throws that may escape a controller action because no catch is on the way.
exceptions --caught Where each exception is thrown and where it is caught, with the handler's outcome.
exceptions --miscaught Throws that pass through a try whose catch clauses do not match their type.
diagram A Mermaid call graph of one controller action.
skill Installs the agent skill for GitHub Copilot and Claude Code in this repository (.github/skills for Copilot, .claude/skills for Claude Code), or --user for every repository. Rerun after updating the tool.

sharpview exceptions --format msbuild prints the uncaught and miscaught findings as build-log warnings (SV0001 may escape an action, SV0002 reaches a global exception handler, SV0003 miscaught, SV0004 third-party call with --strict), for a CI job or a VS Code task with the $msCompile problem matcher. #pragma warning disable SV000N or [SuppressMessage("SharpView", "SV000N")] where a warning points accepts that finding. For teams, install it as a local tool (dotnet new tool-manifest, dotnet tool install SharpView.Cli) so CI gets the same version with dotnet tool restore; the repository README has a GitLab CI job. To get the warnings in every build instead, Visual Studio's Error List included, reference the optional SharpView package from the Web API project.

Run sharpview --help for every option. Exit codes: 0 complete, 1 usable but with gaps, Unknown results or limits, 2 invalid request, 130 cancelled.

Scope

Static analysis of C# source: paths are call relationships, not execution traces. Interface and virtual calls are recorded at their declared target; exceptions and diagram follow their source implementations as marked possibilities (--declared-only turns that off). Implicit exceptions (null dereference, framework calls) are not modelled, and "may escape" never means "unhandled": middleware may still handle it.

Documentation, samples and source: https://github.com/stadtaev/sharpview. Licensed under MIT.

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.

This package has no dependencies.

Version Downloads Last Updated
3.0.0 147 11/2/2026
2.0.0 152 11/2/2026
1.0.0 158 11/2/2026
0.4.1 180 10/25/2026
0.4.0 153 10/25/2026
0.3.1 158 10/25/2026
0.3.0 177 10/24/2026