Co.Revington.Sightline.Hosting 0.5.0

dotnet add package Co.Revington.Sightline.Hosting --version 0.5.0
                    
NuGet\Install-Package Co.Revington.Sightline.Hosting -Version 0.5.0
                    
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="Co.Revington.Sightline.Hosting" Version="0.5.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Co.Revington.Sightline.Hosting" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="Co.Revington.Sightline.Hosting">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
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 Co.Revington.Sightline.Hosting --version 0.5.0
                    
#r "nuget: Co.Revington.Sightline.Hosting, 0.5.0"
                    
#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 Co.Revington.Sightline.Hosting@0.5.0
                    
#: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=Co.Revington.Sightline.Hosting&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=Co.Revington.Sightline.Hosting&version=0.5.0
                    
Install as a Cake Tool

Sightline for a project

Add this package to the .NET app you run. Every time you run it from a Debug build, Sightline, a live and editable map of your code, starts beside it:

Sightline: the live map of this solution is at http://localhost:5210 (or open /sightline on this app)
dotnet add package Co.Revington.Sightline.Hosting

The map shows projects, dependency injection, HTTP endpoints and the path each request takes down to the database, and it updates while you edit. TypeScript and JavaScript in the solution's folder are on it too, with their HTTP calls into your endpoints.

How it behaves

  • Only Debug builds of apps get it. Release builds, test projects, CI runs, and tools that load the app such as dotnet ef are left alone. The package adds no assembly to your app.
  • Web apps also answer /sightline in the Development environment, with a redirect to the map.
  • The map stays open across restarts, such as dotnet watch or a new debug session, and closes 10 seconds after the app stops. Several apps of one solution share one map.
  • It opens the solution named in sightline.json, or else the nearest .sln in the project's folder or above it.

Settings

In the project file:

<PropertyGroup>
  <SightlineAutoStart>false</SightlineAutoStart>     
  <SightlineOpenBrowser>true</SightlineOpenBrowser>  
</PropertyGroup>

For a single run, set the environment variable SIGHTLINE_AUTOSTART=0.

Needs

The .NET 10 runtime on the machine. The app itself can target .NET 5 or newer. Reading TypeScript and JavaScript also needs Node.js 18 or newer.

The same tool without a package reference: dnx Co.Revington.Sightline. More at https://github.com/ravindu-rev/sightline

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.5.0 90 11/16/2026
0.4.2 86 11/13/2026
0.4.1 96 11/12/2026
0.4.0 93 11/12/2026
0.3.0 97 11/12/2026