Releases: semihokur/AsyncFixer
AsyncFixer v2.1.0
- AsyncFixer01: Add support for analyzing and fixing async local functions.
- AsyncFixer01: Detect unnecessary async in methods with terminal awaits in all if-else branches.
- AsyncFixer04: Detect fire-and-forget async calls in
using vardeclarations (C# 8.0+) and warn when a task is returned from a using scope without being awaited. The disposable resource will be disposed before the returned task completes. (#13) - AsyncFixer04: Fix false positive when task is assigned to a variable and awaited later within the same using block (e.g.,
await Task.WhenAny(task, ...)). - AsyncFixer06: Fix false positive for
Assert.ThrowsAsyncand similar assertion methods where discarding theTask<T>result is intentional. - AsyncFixer03: Add test coverage for event handlers using
Action<T>delegates. (#16) - Improve diagnostic messages and README for better AI assistant compatibility.
- AsyncFixer06: New analyzer to detect implicit
Task<T>toTaskconversion in non-async lambdas. Unlike async lambdas which produce compiler error CS8031, non-async lambdas silently discard the result. (#26) - AsyncFixer01: Fix false positive with
await foreachstatements. (#41) - AsyncFixer01: Fix false positives for
ValueTask<T>return types. - AsyncFixer02: Fix false positive with
nameof(Task.Result). (#30) - AsyncFixer02: Fix false positive after
Task.WhenAll- accessing.Resulton awaitedWhenAlltasks is safe. - AsyncFixer02: Fix false positives in synchronous local functions and lambdas inside async methods.
- AsyncFixer03: Fix false positive with generic
EventArgstypes. (#39) - AsyncFixer05: Fix false positive with
TaskTupleAwaiterand similar custom awaiters. (#31) - AsyncFixer05: Detect nested
Taskin return statements. (#27) - Code Fix: Correct nested invocation handling in Fix All operations. (#37)
- Code Fix: Add parentheses when async conversion is followed by member access. (#38)
- Upgrade
Microsoft.CodeAnalysisto v4.8.0.
Nuget package
https://www.nuget.org/packages/AsyncFixer/2.1.0
Visual Studio 2022-2026 Extension
Updated with v2.1.0: https://marketplace.visualstudio.com/items?itemName=SemihOkur.AsyncFixer2022
AsyncFixer v1.6.0
- 01.UnnecessaryAsync: Do not warn when the await expressions are in the scope of a using-declaration.
- 01.UnnecessaryAsync: Fix crash due to InvalidCastExpression.
- Upgrade Visual Studio SDK packages for vsix extensions.
- Upgrade Microsoft.CodeAnalysis package to 3.11.0
Nuget package
https://www.nuget.org/packages/AsyncFixer/1.6.0
Visual Studio 2022 Extension
Updated with v1.6.0: https://marketplace.visualstudio.com/items?itemName=SemihOkur.AsyncFixer2022
Visual Studio 2019 Extension
Updated with v1.6.0: https://marketplace.visualstudio.com/items?itemName=SemihOkur.AsyncFixer
AsyncFixer v1.5.1
- 01.UnnecessaryAsync: Implemented a dataflow analysis for disposable objects to fix false-negatives and false-positives
Nuget package
https://www.nuget.org/packages/AsyncFixer/1.5.1
Visual Studio Extension
Updated with v1.5.1: https://marketplace.visualstudio.com/items?itemName=SemihOkur.AsyncFixer
AsyncFixer v1.5.0
- 01.UnnecessaryAsync: Fix false-negatives to cover more cases
- 02.BlockingCallInsideAsync: Stop suggesting async calls for virtual calls and Dispose methods
- Add support for ValueTask
Nuget package
https://www.nuget.org/packages/AsyncFixer/1.5.0
Visual Studio Extension
Updated with v1.5.0: https://marketplace.visualstudio.com/items?itemName=SemihOkur.AsyncFixer
AsyncFixer v1.4.1
- 01.UnnecessaryAsync: Take account of the lack of covariance in the Task class
- 03.AsyncVoid: Add support for fire-and-forget delegates
- 04.AsyncCallInsideUsingBlock: Fix a potential NRE
Nuget package
https://www.nuget.org/packages/AsyncFixer/1.4.1
Visual Studio Extension
Updated with v1.4.1: https://marketplace.visualstudio.com/items?itemName=SemihOkur.AsyncFixer
AsyncFixer v1.4.0
- 01.UnnecessaryAsync: Fix false warnings with
usingexpression statements - 01.UnnecessaryAsync: Support for expression-bodied members
- 02.BlockingCallInsideAsync: Stop suggesting async calls from non-system assemblies
Nuget package
https://www.nuget.org/packages/AsyncFixer/1.4.0
Visual Studio Extension
https://marketplace.visualstudio.com/items?itemName=SemihOkur.AsyncFixer