MarsArmories.AmbientContext.Analyzers 2.0.0

dotnet add package MarsArmories.AmbientContext.Analyzers --version 2.0.0
                    
NuGet\Install-Package MarsArmories.AmbientContext.Analyzers -Version 2.0.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="MarsArmories.AmbientContext.Analyzers" Version="2.0.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="MarsArmories.AmbientContext.Analyzers" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MarsArmories.AmbientContext.Analyzers">
  <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 MarsArmories.AmbientContext.Analyzers --version 2.0.0
                    
#r "nuget: MarsArmories.AmbientContext.Analyzers, 2.0.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 MarsArmories.AmbientContext.Analyzers@2.0.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=MarsArmories.AmbientContext.Analyzers&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MarsArmories.AmbientContext.Analyzers&version=2.0.0
                    
Install as a Cake Tool

AmbientContext Analyzers

NuGet

MarsArmories.AmbientContext.Analyzers provides optional Roslyn diagnostics for projects that use MarsArmories.AmbientContext.

The analyzers identify obvious fire-and-forget scheduling inside generated ExecuteAs*Async scopes. Work scheduled inside an ambient scope may capture the current ExecutionContext and continue observing ambient values after the scope has completed.

Installation

Install the package in projects where you want the diagnostics to run:

dotnet package add MarsArmories.AmbientContext.Analyzers

For direct project references, keep the analyzer private to the consuming project:

<PackageReference Include="MarsArmories.AmbientContext.Analyzers"
                  Version="1.1.0"
                  PrivateAssets="all" />

Diagnostics

The current analyzer rule inventory is maintained in:

Resources

Please use GitHub Issues for bugs and feature requests. Report security vulnerabilities privately as described in the security policy.

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
2.0.0 113 6/5/2026
1.1.0 105 6/5/2026
1.0.0 110 6/1/2026
0.1.0-alpha.3 61 5/31/2026
0.1.0-alpha.2 65 5/31/2026