Skip to content

Commit d5c8bb4

Browse files
committed
Adjusting select version section
1 parent f2e141e commit d5c8bb4

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

articles/cognitive-services/Translator/quickstart-csharp-sentences.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This quickstart requires an [Azure Cognitive Services account](https://docs.micr
2020

2121
## Prerequisites
2222

23+
* C# 7.1 or later
2324
* [.NET SDK](https://www.microsoft.com/net/learn/dotnet/hello-world-tutorial)
2425
* [Json.NET NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json/)
2526
* [Visual Studio](https://visualstudio.microsoft.com/downloads/), [Visual Studio Code](https://code.visualstudio.com/download), or your favorite text editor
@@ -42,6 +43,18 @@ Next, you'll need to install Json.Net. From your project's directory, run:
4243
dotnet add package Newtonsoft.Json --version 11.0.2
4344
```
4445

46+
## Select the C# language version
47+
48+
This quickstart requires C# 7.1 or later. There are a few ways to change the C# version for your project. In this guide, we'll show you how to adjust the `sentences-sample.csproj` file. For all available options, such as changing the language in Visual Studio, see [Select the C# language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version).
49+
50+
Open your project, then open `sentences-sample.csproj`. Make sure that `LangVersion` is set to 7.1 or later. If there isn't a property group for the language version, add these lines:
51+
52+
```xml
53+
<PropertyGroup>
54+
<LangVersion>7.1</LangVersion>
55+
</PropertyGroup>
56+
```
57+
4558
## Add required namespaces to your project
4659

4760
The `dotnet new console` command that you ran earlier created a project, including `Program.cs`. This file is where you'll put your application code. Open `Program.cs`, and replace the existing using statements. These statements ensure that you have access to all the types required to build and run the sample app.

articles/cognitive-services/Translator/quickstart-csharp-translate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ dotnet add package Newtonsoft.Json --version 11.0.2
4545

4646
## Select the C# language version
4747

48-
This quickstart requires C# 7.1 or later. There are a few ways to change the C# version for your project. In this guide, we'll show you how to adjust the `tts-sample.csproj` file. For all available options, such as changing the language in Visual Studio, see [Select the C# language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version).
48+
This quickstart requires C# 7.1 or later. There are a few ways to change the C# version for your project. In this guide, we'll show you how to adjust the `translate-sample.csproj` file. For all available options, such as changing the language in Visual Studio, see [Select the C# language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version).
4949

50-
Open your project, then open `tts-sample.csproj`. Make sure that `LangVersion` is set to 7.1 or later. If there isn't a property group for the language version, add these lines:
50+
Open your project, then open `translate-sample.csproj`. Make sure that `LangVersion` is set to 7.1 or later. If there isn't a property group for the language version, add these lines:
5151

5252
```xml
5353
<PropertyGroup>

articles/cognitive-services/Translator/quickstart-csharp-transliterate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ dotnet add package Newtonsoft.Json --version 11.0.2
4545

4646
## Select the C# language version
4747

48-
This quickstart requires C# 7.1 or later. There are a few ways to change the C# version for your project. In this guide, we'll show you how to adjust the `tts-sample.csproj` file. For all available options, such as changing the language in Visual Studio, see [Select the C# language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version).
48+
This quickstart requires C# 7.1 or later. There are a few ways to change the C# version for your project. In this guide, we'll show you how to adjust the `transliterate-sample.csproj` file. For all available options, such as changing the language in Visual Studio, see [Select the C# language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version).
4949

50-
Open your project, then open `tts-sample.csproj`. Make sure that `LangVersion` is set to 7.1 or later. If there isn't a property group for the language version, add these lines:
50+
Open your project, then open `transliterate-sample.csproj`. Make sure that `LangVersion` is set to 7.1 or later. If there isn't a property group for the language version, add these lines:
5151

5252
```xml
5353
<PropertyGroup>

0 commit comments

Comments
 (0)