ConfigureAwaitEnforcer 1.2.0

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

// Install ConfigureAwaitEnforcer as a Cake Tool
#tool nuget:?package=ConfigureAwaitEnforcer&version=1.2.0

Extension enforces the use of the ConfigureAwait expression.

Visual studio extension is available here: https://marketplace.visualstudio.com/items?itemName=Rene-Stein.ConfigureAwaitEnforcer

Nuget: Install-Package ConfigureAwaitEnforcer (https://www.nuget.org/packages/ConfigureAwaitEnforcer/)

Version 1.2.0

  • Better support for the nested await expressions.
await tf.StartNew(async () => await Task.FromResult(5).ConfigureAwait(false)).ConfigureAwait(false);
await tf.StartNew(async () => await tf.StartNew(async () => await Task.FromResult(new Object()).ConfigureAwait(false)).ConfigureAwait(false)).ConfigureAwait(false);
  • Support for expressions that returns ValueTask<T>. Support for async LINQ.

e.g.

 var parseResult = await enumerateLines(reader) 
                              .Where(line => !String.IsNullOrEmpty(line) || line[0].Equals(COMMENT))
                              .AggregateAsync((ParserState.WaitingForExpressionFormat, new Sat(SimpleDPLLStrategy.Solve)),
                                              parseLine).ConfigureAwait(false);

Version 1.1.3.0

  • Support for the VS 2019 RTM

Version 1.1.2.0

  • Improved compatibility with VS 2019.
  • Deleted Microsoft.VisualStudio.MPF.15.0 dependency.

Version 1.1.1.0

  • Improved compatibility with VS 2019.
  • Fixed reading of the configuration.
  • Misc. bug fixes.

Version 1.1.0.0

  • Added ConfigureAwait(true) code fix.
  • Added Options page (menu Tools/Options/ConfigureAwaitEnforcer in Visual Studio).
  • Added 'Diagnostics severity' option (values Error, Warning, Info, Hidden). Default value is Error. You have to restart Visual Studio to see the change.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 1.3

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ConfigureAwaitEnforcer:

Package Downloads
STR.Common

Common code for other STR applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 3,033 8/31/2021
2.0.0-beta 361 7/1/2020
1.2.0 44,145 11/26/2019
1.1.3 607 4/4/2019
1.1.2 573 3/18/2019
1.1.1 597 2/26/2019
1.1.0 655 2/13/2019
1.0.0 717 12/13/2018