Skip to content

Commit fa5b13f

Browse files
authored
Update durable-functions-roslyn-analyzer.md
1 parent 28df562 commit fa5b13f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

articles/azure-functions/durable/durable-functions-roslyn-analyzer.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,28 @@ author: amdeel
55
ms.topic: conceptual
66
ms.date: 02/15/2023
77
ms.author: azfuncdf
8+
zone_pivot_groups: function-worker-process
89
---
910

1011
# Durable Functions Rosyln Analyzer (C# only)
1112

12-
The Durable Functions Roslyn Analyzer is a live code analyzer that guides C# users to adhere to Durable Functions specific [code constraints](./durable-functions-code-constraints.md). This analyzer is enabled by default to check your Durable Functions code and generate warnings and errors when there's any.
13+
::: zone pivot="isolated"
14+
The Durable Functions Roslyn Analyzer is a live code analyzer that guides C# users to adhere to Durable Functions specific [code constraints](./durable-functions-code-constraints.md). This analyzer is enabled by default to check your Durable Functions code and generate warnings and errors when there's any. A list of shipped analyzer rules can be found in the [analyzer release notes](https://github.com/microsoft/durabletask-dotnet/blob/main/src/Analyzers/AnalyzerReleases.Shipped.md).
1315

14-
For more information on the .NET Isolated Analyzer (improvements, releases, bug fixes, etc.), please visit [the durabletask-dotnet release notes page](https://github.com/microsoft/durabletask-dotnet/releases). For updated information about the .NET In-Process Analyzer, please visit [the durable-extension release notes page](https://github.com/Azure/azure-functions-durable-extension/releases).
16+
For more information on the .NET Isolated Analyzer (improvements, releases, bug fixes, etc.), please visit [the durabletask-dotnet release notes page](https://github.com/microsoft/durabletask-dotnet/releases).
17+
18+
> [!NOTE]
19+
> The .NET Isolated Roslyn Analyzer is only available starting from [Microsoft.Azure.Functions.Worker.Extensions.DurableTask v1.6.0](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.DurableTask/1.6.0).
20+
21+
::: zone-end
22+
23+
::: zone pivot="in-proc"
24+
25+
The Durable Functions Roslyn Analyzer is a live code analyzer that guides C# users to adhere to Durable Functions specific [code constraints](./durable-functions-code-constraints.md). This analyzer is enabled by default to check your Durable Functions code and generate warnings and errors when there's any. Currently, the analyzer is only supported in the .NET in-process worker.
26+
27+
The Roslyn Analyzer for the **in-process** model is available and provides diagnostics to enforce Durable Functions best practices. See the [Analyzer v0.2.0 release](https://github.com/Azure/azure-functions-durable-extension/releases/tag/Analyzer-v0.2.0) for details.
28+
29+
For updated information about the .NET In-Process Analyzer, please visit [the durable-extension release notes page](https://github.com/Azure/azure-functions-durable-extension/releases).
1530

1631
## Configuration
1732

@@ -32,3 +47,4 @@ To disable the analyzer, refer to these [instructions](/visualstudio/code-qualit
3247
Open **Settings** by clicking the wheel icon on the lower left corner, then search for “rosyln”. “Enable Rosyln Analyzers” should show up as one of the results. Check the enable support box.
3348

3449
:::image type="content" source="media/durable-functions-best-practice/roslyn-analyzer-vs-code.png" alt-text="Screenshot of configuring Roslyn Analyzer in Visual Studio Code.":::
50+
::: zone-end

0 commit comments

Comments
 (0)