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
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/durable-functions-roslyn-analyzer.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,28 @@ author: amdeel
5
5
ms.topic: conceptual
6
6
ms.date: 02/15/2023
7
7
ms.author: azfuncdf
8
+
zone_pivot_groups: function-worker-process
8
9
---
9
10
10
11
# Durable Functions Rosyln Analyzer (C# only)
11
12
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).
13
15
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).
15
30
16
31
## Configuration
17
32
@@ -32,3 +47,4 @@ To disable the analyzer, refer to these [instructions](/visualstudio/code-qualit
32
47
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.
33
48
34
49
:::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