Skip to content

Commit 5de1714

Browse files
committed
C# quickstart for intent.
1 parent 63e6797 commit 5de1714

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/cognitive-services/LUIS/includes/get-started-get-intent-rest-csharp.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ Use C# to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-pr
3030
dotnet new console -lang C# -n predict-with-rest
3131
```
3232

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:
3434

3535
```console
36+
cd predict-with-rest
3637
dotnet add package System.Net.Http
3738
```
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:
3941
4042
```csharp
4143
using System;
@@ -97,10 +99,10 @@ Use C# to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-pr
9799

98100
1. Replace the following values:
99101

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`.
102104

103-
1. Build the console application.
105+
1. Build the console application with this command:
104106

105107
```console
106108
dotnet build
@@ -112,7 +114,7 @@ Use C# to query the prediction endpoint GET [API](https://aka.ms/luis-apim-v3-pr
112114
dotnet run
113115
```
114116

115-
1. Review prediction response in JSON format:
117+
1. Review the prediction response, which is returned as JSON:
116118

117119
```console
118120
Hit ENTER to exit...

0 commit comments

Comments
 (0)