Lightrun 1.16.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Lightrun --version 1.16.0
                    
NuGet\Install-Package Lightrun -Version 1.16.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="Lightrun" Version="1.16.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lightrun" Version="1.16.0" />
                    
Directory.Packages.props
<PackageReference Include="Lightrun" />
                    
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 Lightrun --version 1.16.0
                    
#r "nuget: Lightrun, 1.16.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.
#addin nuget:?package=Lightrun&version=1.16.0
                    
Install Lightrun as a Cake Addin
#tool nuget:?package=Lightrun&version=1.16.0
                    
Install Lightrun as a Cake Tool

Lightrun for .NET

Lightrun is a developer-native observabity platform. It's a way to add logs, inspect the state of the current execution (in a familiar, debugger-like view), and extract any type of code-level metric on the fly - without redeploying, restarting or even stopping the running application.

Check out our docs to learn more.

Getting Started

To get started with Lightrun you'll need three things:

  1. A Lightrun Account - you can get one here.
  2. A Lightrun Plugin - you'll have instructions to download it once you create an account, but you can also check them out here.
  3. A Lightrun Agent - which is this very NuGet package! It's the thing that actually does the magic.

Once you've signed up for an account and downloaded the plugin, you can install the agent in your application.

Installing the Lightrun Agent

In order to install the Lightrun .NET Agent please follow these steps:

  1. Add the Lightrun NuGet package to your project

  2. Import Lightrun at the start of your your application file (i.e. Program.cs) and then start it:

using Lightrun;

LightrunAgent.Start(new AgentOptions {
   Secret = "<COMPANY-SECRET>",
});

You will have a <COMPANY-SECRET> auto-generated for you during the onbaording process, right after signing up for an account.

Important Note - Debugging Information

Lightrun for .NET needs to have debugging information available to it in order to work properly. Please make sure to set DebugType to portable when compiling your project code.

  1. Run the application as you normally would.

You should now see the application's agent popping up in the Lightrun Plugin's sidebar - you can now add logs, snapshots and metrics to your application.

Providing Credentials via Environment Variables

You can optionally choose to provide the <COMPANY-SECRET> via environment variables to the .NET process. To do so, follow these steps after installing the agent:

  1. Import Lightrun at the start of the file:
using Lightrun;

LightrunAgent.Start(new AgentOptions());
  1. Run the application with the environment variables provided before the dotnet command (note that this does not work on Windows):
LIGHTRUN_SECRET=<COMPANY-SECRET> dotnet myapp.dll
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • 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
1.59.2 110 5/28/2025
1.59.1 133 5/25/2025
1.59.0 86 5/25/2025
1.58.1 135 5/11/2025
1.58.0 148 5/6/2025
1.57.1 162 4/27/2025
1.57.0 172 4/22/2025
1.56.0 603 4/6/2025
1.55.2 1,644 4/3/2025
1.55.1 2,575 3/27/2025
1.55.0 301 3/23/2025
1.54.2 168 3/16/2025
1.54.0 12,475 3/10/2025
1.53.4 249 3/6/2025
1.53.3 1,218 3/4/2025
1.53.1 159 2/27/2025
1.53.0 1,213 2/24/2025
1.52.2 4,588 2/13/2025
1.52.0 345 2/10/2025
1.51.3 129 2/25/2025
1.51.1 750 2/3/2025
1.51.0 376 1/28/2025
1.50.7 183 4/20/2025
1.50.0 1,178 1/14/2025
1.49.1 570 1/2/2025
1.49.0 150 12/29/2024
1.48.1 810 12/22/2024
1.48.0 138 12/23/2024
1.47.3 180,270 12/9/2024
1.47.2 157 12/9/2024
1.47.0 364 12/1/2024
1.46.0 11,545 11/18/2024
1.46.0-dotnet-rc5 12,541 11/28/2024
1.46.0-dotnet-rc2 97 11/28/2024
1.45.2 1,892 11/14/2024
1.45.1 146 11/14/2024
1.45.0 7,777 11/4/2024
1.44.0 12,623 10/22/2024
1.43.0 407 10/8/2024
1.42.0 612 9/24/2024
1.41.0 187 9/11/2024
1.40.1 65,583 8/28/2024
1.40.0 266 8/25/2024
1.39.4 5,369 9/18/2024
1.39.3 143 9/17/2024
1.39.2 16,733 8/19/2024
1.39.1 3,005 8/13/2024
1.39.0 163 8/13/2024
1.38.1 2,722 8/6/2024
1.37.2 66,626 7/25/2024
1.37.1 1,148 7/22/2024
1.37.0 171 7/15/2024
1.36.4 4,393 7/15/2024
1.36.3 122 7/10/2024
1.36.1 450 7/3/2024
1.36.0 280 7/1/2024
1.35.2 255 6/19/2024
1.35.1 177 6/18/2024
1.34.6 136 8/19/2024
1.34.5 143 7/11/2024
1.34.0 268 6/2/2024
1.33.2 192 5/26/2024
1.33.0 235 5/20/2024
1.32.0 266 5/6/2024
1.31.0 659 4/21/2024
1.30.0 543 4/11/2024
1.30.0-beta 508 4/8/2024
1.29.1 687 4/3/2024
1.29.0 676 3/24/2024
1.29.0-beta 651 3/23/2024
1.28.0 5,375 3/10/2024
1.27.0 855 2/25/2024
1.26.0 448 2/18/2024
1.25.0-beta 324 1/29/2024
1.24.0-beta 355 1/19/2024
1.23.0-beta 767 12/31/2023
1.22.3-beta 344 1/19/2024
1.22.0-beta 668 12/20/2023
1.21.0 565 12/3/2023
1.20.0 442 11/19/2023
1.19.0 264 11/5/2023
1.18.0 411 10/22/2023
1.17.0 340 10/8/2023
1.16.0 388 9/26/2023
1.15.0 16,221 9/10/2023
1.14.2 3,420 9/3/2023
1.14.0 316,648 8/15/2023
1.13.1 59,213 7/11/2023
1.13.0 3,215 6/29/2023
1.12.4-beta 1,080 6/14/2023
1.12.3-beta 26,693 6/6/2023
1.12.2-beta 338 6/5/2023
1.12.1-beta 481 5/23/2023
1.12.0-beta 16,828 5/19/2023
1.11.3-beta 7,814 4/18/2023
1.11.2-beta 331 4/18/2023
1.11.1-beta 337 4/11/2023
1.11.0-beta 376 4/4/2023
1.10.6-beta 352 3/22/2023
1.10.5-beta 298 3/21/2023
1.10.4-beta 354 3/19/2023
1.10.3-beta 299 3/15/2023
1.10.2-beta 320 3/7/2023
1.10.1-beta 517 3/1/2023
1.10.0-beta.1 788 2/17/2023
1.9.0-beta.3 258 2/6/2023
1.9.0-beta.2 258 1/26/2023
1.9.0-beta.1 214 1/10/2023