SharpView 0.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global SharpView --version 0.2.1
                    
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 --version 0.2.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SharpView&version=0.2.1
                    
nuke :add-package SharpView --version 0.2.1
                    

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
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.
reach Everything an action can reach, once per method, with distance and shortest path.
paths Every call path from an action (or any --root method).
diagram A Mermaid call graph of one controller action.
inspect Extraction summary; --methods lists root IDs; --json writes the full fact snapshot.

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; implementations are shown only as marked candidates. 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
0.4.1 5 10/25/2026
0.4.0 35 10/25/2026
0.3.1 38 10/25/2026
0.3.0 55 10/24/2026
0.2.1 59 10/24/2026
0.2.0 66 10/21/2026
0.1.2 69 10/20/2026
0.1.1 65 10/20/2026
0.1.0 67 10/19/2026
0.0.1 76 10/18/2026