Skip to content

Commit f7ea53b

Browse files
author
dksimpson
committed
Fix duplicate header caused by inserting include file
1 parent 71c319b commit f7ea53b

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

articles/cognitive-services/Bing-Autosuggest/includes/quickstarts/autosuggest-client-library-csharp.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: aahill
66
manager: nitinme
77
ms.service: cognitive-services
88
ms.topic: include
9-
ms.date: 04/06/2020
9+
ms.date: 05/06/2020
1010
ms.author: aahi
1111
---
1212

@@ -21,13 +21,9 @@ Use the Bing Autosuggest client library for .NET to get search suggestions based
2121
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/)
2222
* The current version of [.NET Core](https://dotnet.microsoft.com/download/dotnet-core).
2323

24-
## Setting up
25-
26-
### Create an Azure resource
27-
2824
[!INCLUDE [cognitive-services-bing-autosuggest-signup-requirements](~/includes/cognitive-services-bing-autosuggest-signup-requirements.md)]
2925

30-
### Create an environment variable
26+
## Create an environment variable
3127

3228
>[!NOTE]
3329
> The endpoints for non-trial resources created after July 1, 2019 use the custom subdomain format shown below. For more information and a complete list of regional endpoints, see [Custom subdomain names for Cognitive Services](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-custom-subdomains).
@@ -40,7 +36,7 @@ Using your key and endpoint from the resource you created, create two environmen
4036

4137
Use the instructions for your operating system.
4238
<!-- replace the below endpoint and key examples -->
43-
#### [Windows](#tab/windows)
39+
### [Windows](#tab/windows)
4440

4541
```console
4642
setx AUTOSUGGEST_SUBSCRIPTION_KEY <replace-with-your-autosuggest-api-key>
@@ -49,7 +45,7 @@ setx AUTOSUGGEST_ENDPOINT <replace-with-your-autosuggest-api-endpoint>
4945

5046
After you add the environment variable, restart the console window.
5147

52-
#### [Linux](#tab/linux)
48+
### [Linux](#tab/linux)
5349

5450
```bash
5551
export AUTOSUGGEST_SUBSCRIPTION_KEY=<replace-with-your-autosuggest-api-key>
@@ -58,7 +54,7 @@ export AUTOSUGGEST_ENDPOINT=<replace-with-your-autosuggest-api-endpoint>
5854

5955
After you add the environment variable, run `source ~/.bashrc` from your console window to make the changes effective.
6056

61-
#### [macOS](#tab/unix)
57+
### [macOS](#tab/unix)
6258

6359
Edit your `.bash_profile`, and add the environment variable:
6460

@@ -70,7 +66,7 @@ export AUTOSUGGEST_ENDPOINT=<replace-with-your-autosuggest-api-endpoint>
7066
After you add the environment variable, run `source .bash_profile` from your console window to make the changes effective.
7167
***
7268

73-
### Create a new C# application
69+
## Create a new C# application
7470

7571
Create a new .NET Core application in your preferred editor or IDE.
7672

@@ -106,7 +102,7 @@ using System.Text;
106102
using System.Threading.Tasks;
107103
```
108104

109-
In the `Program` class, create variables for your resource's Azure endpoint and key. If you created the environment variable after you launched the application, you will need to close and reopen the editor, IDE, or shell running it to access the variable.
105+
In the `Program` class, create variables for your resource's Azure endpoint and key. If you created the environment variable after you launched the application, you'll need to close and reopen the editor, IDE, or shell running it to access the variable.
110106

111107
```csharp
112108
private const string key_var = "AUTOSUGGEST_SUBSCRIPTION_KEY";
@@ -117,7 +113,7 @@ private const string endpoint_var = "AUTOSUGGEST_ENDPOINT";
117113
private static readonly string endpoint = Environment.GetEnvironmentVariable(endpoint_var);
118114
```
119115

120-
In the application's `Main` method, add the following method calls, which you will define later.
116+
In the application's `Main` method, add the following method calls, which you'll define later.
121117

122118
```csharp
123119
static void Main(string[] args)
@@ -128,7 +124,7 @@ static void Main(string[] args)
128124
}
129125
```
130126

131-
### Install the client library
127+
## Install the client library
132128

133129
Within the application directory, install the Bing Autosuggest client library for .NET with the following command:
134130

0 commit comments

Comments
 (0)