ConfigureAwaitEnforcer 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

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package ConfigureAwaitEnforcer -Version 1.2.0
dotnet add package ConfigureAwaitEnforcer --version 1.2.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

e. g.

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.

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.

e. g.

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.

  • .NETStandard 1.3

    • 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 History

Version Downloads Last updated
2.0.0-beta 67 7/1/2020
1.2.0 355 11/26/2019
1.1.3 187 4/4/2019
1.1.2 183 3/18/2019
1.1.1 209 2/26/2019
1.1.0 225 2/13/2019
1.0.0 234 12/13/2018