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/applied-ai-services/form-recognizer/includes/get-started/csharp.md
+12-15Lines changed: 12 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,12 +80,18 @@ In this quickstart, you'll use the following APIs to extract structured data fro
80
80
81
81
To interact with the Form Recognizer service, you'll need to create an instance of the `FormRecognizerClient` class. To do so, you'll create an `AzureKeyCredential` with your key and a `FormRecognizerClient` instance with the `AzureKeyCredential` and your Form Recognizer `endpoint`.
82
82
83
+
> [!NOTE]
84
+
>
85
+
> * Starting with .NET 6, new projects using the `console` template generate a new program style that differs from previous versions.
86
+
> * The new output uses recent C# features that simplify the code you need to write.
87
+
> * When you use the newer version, you only need to write the body of the `Main` method. You don't need to include top-level statements, global using directives, or implicit using directives.
88
+
> * For more information, *see*[**New C# templates generate top-level statements**](/dotnet/core/tutorials/top-level-templates).
1. Delete the line, `Console.Writeline("Hello World!");` , and add one of the **Try It** code samples to the **Main** method in the **Program.cs** file:
109
+
1. Delete the line, `Console.Writeline("Hello World!");` , and add one of the **Try It** code samples to **Program.cs** file:
104
110
105
111
:::image type="content" source="../../media/quickstarts/add-code-here.png" alt-text="Screenshot: add the sample code to the Main method.":::
106
112
@@ -124,19 +130,14 @@ Extract text, selection marks, text styles, and table structures, along with the
124
130
> * We've added the file URI value to the `formUri` variable.
125
131
> * To extract the layout from a given file at a URI, use the `StartRecognizeContentFromUriAsync` method.
126
132
127
-
### Add the following code to your layout application **Main** method:
133
+
### Add the following code to your layout application Program.cs file:
0 commit comments