Skip to content

Commit 5702bc1

Browse files
committed
Updates to C# and C++ quickstart pages
1 parent 3f1d487 commit 5702bc1

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/image-analysis-cpp-sdk-40.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.author: pafarley
1616

1717
Use the Image Analysis client library for C++ to analyze an image to read text and generate captions. This quickstart defines a method, `AnalyzeImage`, which uses the client object to analyze a remote image and print the results.
1818

19-
[Reference documentation](/cpp/cognitive-services/vision) | Packages (NuGet): [Core](https://www.nuget.org/packages/Azure.AI.Vision.Core) [ImageAnalysis](https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis) | [Samples](https://github.com/Azure-Samples/azure-ai-vision-sdk)
19+
[Reference documentation](/cpp/cognitive-services/vision) | Packages (NuGet): [ImageAnalysis](https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis) | [Samples](https://github.com/Azure-Samples/azure-ai-vision-sdk)
2020

2121
> [!TIP]
2222
> You can also analyze a local image. See the [reference documentation](/cpp/cognitive-services/vision) for alternative **Analyze** methods. Or, see the sample code on [GitHub](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/cpp/image-analysis/samples.cpp) for scenarios involving local images.
@@ -27,7 +27,7 @@ Use the Image Analysis client library for C++ to analyze an image to read text a
2727
## Prerequisites
2828

2929
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/)
30-
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/).
30+
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/) with workload **Desktop development with C++** enabled.
3131
* Once you have your Azure subscription, <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision" title="Create a Computer Vision resource" target="_blank">create a Computer Vision resource</a> in the Azure portal. In order to use the captioning feature in this quickstart, you must create your resource in one of the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US. After it deploys, click **Go to resource**.
3232
* You will need the key and endpoint from the resource you create to connect your application to the Computer Vision service.
3333
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
@@ -41,9 +41,7 @@ Create a new C++ application.
4141

4242
#### [Windows](#tab/windows)
4343

44-
In Visual Studio, open the **File** menu and choose **New** -> **Project** to open the **Create a new Project** dialog. Create a new **C++ Console application** and then choose **Next**.
45-
46-
In the **Configure your new project** dialog, enter _ImageAnalysisQuickstart_ in the **Project name** edit box. Choose **Create** to create the project.
44+
Open Visual Studio, and under **Get started** select **Create a new project**. Set the template filters to _C++/Windows/Console_. Select **Console App** and choose **Next**. Update the project name to _ImageAnalysisQuickstart_ and choose **Create** to create the project.
4745

4846
### Install the client library
4947

@@ -64,7 +62,7 @@ From the project directory, open the _ImageAnalysisQuickstart.cpp_ file that was
6462
[!code-cpp[](~/azure-ai-vision-sdk/docs/learn.microsoft.com/cpp/image-analysis/2/2.cpp?name=snippet_single)]
6563

6664

67-
Then, run the application by clicking the **Debug** button at the top of the IDE window.
65+
Then, compile run the application by selecting **Start Debugging** from the **Debug** menu at the top of the IDE window (or press **F5**). You should see output similar to the one below.
6866

6967
> [!div class="nextstepaction"]
7068
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=CPP&Pillar=Vision&Product=Image-analysis&Page=quickstart4&Section=Analyze-image" target="_target">I ran into an issue</a>

articles/cognitive-services/Computer-vision/includes/quickstarts-sdk/image-analysis-csharp-sdk-40.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.author: pafarley
1717
Use the Image Analysis client library for C# to analyze an image to read text and generate captions. This quickstart defines a method, `AnalyzeAsync`, which uses the client object to analyze a remote image and print the results.
1818

1919
[Reference documentation](/dotnet/api/azure.ai.vision.imageanalysis
20-
) | Packages (NuGet): [Core](https://www.nuget.org/packages/Azure.AI.Vision.Core) [ImageAnalysis](https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis) | [Samples](https://github.com/Azure-Samples/azure-ai-vision-sdk)
20+
) | Packages (NuGet): [ImageAnalysis](https://www.nuget.org/packages/Azure.AI.Vision.ImageAnalysis) | [Samples](https://github.com/Azure-Samples/azure-ai-vision-sdk)
2121

2222
> [!TIP]
2323
> You can also analyze a local image. See the [reference documetation](/dotnet/api/azure.ai.vision.imageanalysis) for alternative **Analyze** methods. Or, see the sample code on [GitHub](https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/samples/csharp/image-analysis/dotnetcore/Samples.cs) for scenarios involving local images.
@@ -28,7 +28,7 @@ Use the Image Analysis client library for C# to analyze an image to read text an
2828
## Prerequisites
2929

3030
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/)
31-
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/) or current version of [.NET Core](https://dotnet.microsoft.com/download/dotnet-core).
31+
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/) with workload **.NET desktop development** enabled, or [.NET 6.0](https://dotnet.microsoft.com/download/dotnet-core) SDK or above installed.
3232
* Once you have your Azure subscription, <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision" title="Create a Computer Vision resource" target="_blank">create a Computer Vision resource</a> in the Azure portal. In order to use the captioning feature in this quickstart, you must create your resource in one of the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US. After it deploys, click **Go to resource**.
3333
* You will need the key and endpoint from the resource you create to connect your application to the Computer Vision service.
3434
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
@@ -42,7 +42,7 @@ Create a new C# application.
4242

4343
#### [Visual Studio IDE](#tab/visual-studio)
4444

45-
Using Visual Studio, create a new **Console app (.NET Framework)** application.
45+
Open Visual Studio, and under **Get started** select **Create a new project**. Set the template filters to _C#/All Platforms/Console_. Select **Console App** (command-line application that can run on .NET on Windows, Linux and macOS) and choose **Next**. Update the project name to _ImageAnalysisQuickstart_ and choose **Next**. Select **.NET 6.0** or higher, and choose **Create** to create the project.
4646

4747
### Install the client library
4848

@@ -91,15 +91,19 @@ From the project directory, open the *Program.cs* file that was created previous
9191
[!code-csharp[](~/azure-ai-vision-sdk/docs/learn.microsoft.com/csharp/image-analysis/2/Program.cs?name=snippet_single)]
9292

9393

94-
Then, run the application
94+
Then, build and run the application. You should see output similar to the one below.
9595

9696
#### [Visual Studio IDE](#tab/visual-studio)
9797

98-
Run the application by clicking the **Debug** button at the top of the IDE window.
98+
Build and run the application by selecting **Start Debugging** from the **Debug** menu at the top of the IDE window (or press **F5**).
9999

100100
#### [CLI](#tab/cli)
101101

102-
Run the application from your application directory with the `dotnet run` command.
102+
Build and run the application from your application directory with these commands:
103+
104+
```console
105+
dotnet build
106+
```
103107

104108
```dotnet
105109
dotnet run

0 commit comments

Comments
 (0)