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
<PackageReference Include="Co.Revington.Sightline.Hosting" Version="0.5.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Co.Revington.Sightline.Hosting" Version="0.5.0" />
<PackageReference Include="Co.Revington.Sightline.Hosting"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Co.Revington.Sightline.Hosting --version 0.5.0
#r "nuget: Co.Revington.Sightline.Hosting, 0.5.0"
#:package Co.Revington.Sightline.Hosting@0.5.0
#addin nuget:?package=Co.Revington.Sightline.Hosting&version=0.5.0
#tool nuget:?package=Co.Revington.Sightline.Hosting&version=0.5.0
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 efare left alone. The package adds no assembly to your app. - Web apps also answer
/sightlinein the Development environment, with a redirect to the map. - The map stays open across restarts, such as
dotnet watchor 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.slnin 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
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.