You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn about how to use the Roslyn Analyzer to help adhere to Durable Functions specific code constraints.
4
4
author: amdeel
5
5
ms.topic: conceptual
6
-
ms.date: 02/15/2023
6
+
ms.date: 08/05/2025
7
7
ms.author: azfuncdf
8
8
---
9
9
10
10
# Durable Functions Rosyln Analyzer (C# only)
11
11
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. Currently, the analyzer is only supported in the .NET in-process worker.
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
13
14
-
For more detailed information on the analyzer (improvements, releases, bug fixes, etc.), see its [release notes page](https://github.com/Azure/azure-functions-durable-extension/releases/tag/Analyzer-v0.2.0).
14
+
## .NET isolated analyzer
15
15
16
+
Find information (improvements, releases, bug fixes, etc.) about the Roslyn Analyzer for the NET isolated model on [the durabletask-dotnet release notes page](https://github.com/microsoft/durabletask-dotnet/releases).
16
17
17
-
## Configuration
18
+
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).
19
+
20
+
> [!NOTE]
21
+
> 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).
22
+
23
+
## .NET in-process analyzer
24
+
25
+
Information regarding the Roslyn Analyzer for the **in-process** model can be found on the [Analyzer v0.2.0 release page](https://github.com/Azure/azure-functions-durable-extension/releases/tag/Analyzer-v0.2.0).
26
+
27
+
The following sections provide configuration instructions for more detailed analysis when using the .NET in-process analyzer.
18
28
19
29
### Visual Studio
20
30
@@ -33,3 +43,4 @@ To disable the analyzer, refer to these [instructions](/visualstudio/code-qualit
33
43
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.
34
44
35
45
:::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.":::
0 commit comments