File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
articles/cognitive-services/LUIS/includes Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,14 @@ Use C# to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-pr
30
30
dotnet new console -lang C# -n predict-with-rest
31
31
```
32
32
33
- 1. Install required dependencies with the following dotnet CLI commands.
33
+ 1. Change to the `predict- with-rest` directory you just created, and install required dependencies with these commands:
34
34
35
35
```console
36
+ cd predict-with-rest
36
37
dotnet add package System.Net.Http
37
38
```
38
- 1. Overwrite Program.cs with the following code:
39
+
40
+ 1. Open `Program.cs` in your favorite IDE or editor. Then overwrite `Program.cs` with the following code:
39
41
40
42
```csharp
41
43
using System;
@@ -97,10 +99,10 @@ Use C# to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-pr
97
99
98
100
1 . Replace the following values:
99
101
100
- * ` YOUR-KEY ` with your starter key
101
- * ` YOUR-ENDPOINT ` with your endpoint, for example, ` westus2.api.cognitive.microsoft.com `
102
+ * ` YOUR-KEY ` with your starter key.
103
+ * ` YOUR-ENDPOINT ` with your endpoint. For example, ` westus2.api.cognitive.microsoft.com ` .
102
104
103
- 1 . Build the console application.
105
+ 1 . Build the console application with this command:
104
106
105
107
``` console
106
108
dotnet build
@@ -112,7 +114,7 @@ Use C# to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-pr
112
114
dotnet run
113
115
```
114
116
115
- 1. Review prediction response in JSON format :
117
+ 1. Review the prediction response, which is returned as JSON :
116
118
117
119
```console
118
120
Hit ENTER to exit...
You can’t perform that action at this time.
0 commit comments