Skip to content

Commit ba39cf4

Browse files
Freshness Edit: Visual Studio | 330492 (#13411)
* Freshness pass, in progress. * Freshness. * Fix warning. * Minor edits. * Implement feedback. * Incorporate feedback.
1 parent 076ea5c commit ba39cf4

16 files changed

+158
-144
lines changed

docs/get-started/includes/git-source-control.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 04/18/2024
2+
ms.date: 12/04/2024
33
ms.subservice: general-ide
44
ms.custom: vs-get-started, devdivchpfy22
55
ms.author: ghogen
@@ -37,13 +37,13 @@ To associate your code with Git, start by creating a new Git repository where yo
3737
## Use Git actions in Visual Studio
3838

3939
Here's a brief summary of Git actions available in the Visual Studio status bar:
40-
41-
- The **Up/Down** arrows show how many outgoing/incoming commits are in your current branch. You can use this icon to pull any incoming commits or push any outgoing commits.
42-
40+
41+
- The **Up/Down** arrows show how many outgoing/incoming commits are in your current branch. You can use this icon to pull any incoming commits or push any outgoing commits.
42+
4343
- To view a specific commit, select the **Up/Down** arrow, and then select **View Outgoing/Incoming**.
4444

4545
- The **Pencil** shows the number of uncommitted changes to your code. You can select this icon to view those changes in the **Git Changes** window.
4646

4747
The **Git** menu provides tools for repository actions on your files. You can [use git fetch, pull, push, and sync for version control in Visual Studio](../../version-control/git-fetch-pull-sync.md).
4848

49-
To learn more about how to use Git with your app, see the [Visual Studio version control documentation](../../version-control/git-with-visual-studio.md).
49+
For more information about how to use Git with your app, see [About Git in Visual Studio](../../version-control/git-with-visual-studio.md).
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/get-started/tutorial-projects-solutions.md

Lines changed: 61 additions & 49 deletions
Large diffs are not rendered by default.
Loading
Loading

docs/get-started/visual-basic/tutorial-console.md

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
22
title: "Tutorial: Create simple Visual Basic console apps"
33
description: Create a Visual Basic console application in Visual Studio that asks the user for input and displays the value along with the current time.
44
ms.custom: vs-acquisition
5-
ms.date: 11/17/2023
5+
ms.date: 12/06/2024
66
ms.subservice: general-ide
7-
87
ms.topic: tutorial
98
ms.devlang: vb
109
author: anandmeg
1110
ms.author: meghaanand
1211
manager: mijacobs
1312
dev_langs:
1413
- vb
15-
# Customer intent: As a novice, I want to create my first app so that I see how Visual Basic works.
14+
# Customer intent: As a novice, I want to create my first app so that I see how Visual Basic works in Visual Studio.
1615
---
17-
# Tutorial: Create a simple Visual Basic (VB) console app
16+
# Tutorial: Create a simple Visual Basic console app
17+
18+
In this tutorial, you use Visual Studio to create a Visual Basic application. Visual Basic (VB) is an easy to learn type-safe programming language. This tutorial also explores some features of the [Visual Studio integrated development environment (IDE)](visual-studio-ide.md), including [source control in Git](/visualstudio/version-control).
1819

19-
This article shows how you use Visual Studio to create a simple Visual Basic application, a *console app*. In this app, you ask the user for their name, and then display it back with the current time. You also explore some features of the [Visual Studio integrated development environment (IDE)](visual-studio-ide.md), including [source control in Git](/visualstudio/version-control). Visual Basic is a type-safe programming language that's designed to be easy to learn. A console app takes input and displays output in a command-line window, also known as a console.
20+
A *console app* takes input and displays output in a command-line window, also known as a console. The console app that you create asks the user for their name, and then displays it, along with the current time.
2021

2122
In this tutorial, you learn how to:
2223

@@ -30,7 +31,7 @@ In this tutorial, you learn how to:
3031
3132
## Prerequisites
3233

33-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) page to install it for free.
34+
- If you don't have Visual Studio, go to [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) to install it for free.
3435

3536
## Create a project
3637

@@ -49,18 +50,18 @@ First, you create a Visual Basic app project. The default project template inclu
4950

5051
1. In the start window, choose **Create a new project**.
5152

52-
:::image type="content" source="media/vs-2019/create-new-project-dark-theme.png" alt-text="Screenshot showing the Visual Studio start window with 'Create a new project' selected.":::
53+
:::image type="content" source="media/vs-2019/create-new-project-dark-theme.png" alt-text="Screenshot showing the Visual Studio start window with 'Create a new project' selected." lightbox="media/vs-2019/create-new-project-dark-theme.png":::
5354

54-
1. In the **Create a new project** window, choose **Visual Basic** from the Language list. Next, choose **Windows** from the Platform list and **Console** from the project types list.
55+
1. In the **Create a new project** window, choose **Visual Basic** from the language list. Next, choose **Windows** from the platform list and **Console** from the project types list.
5556

5657
After you apply the language, platform, and project type filters, choose the **Console Application** template, and then choose **Next**.
5758

58-
:::image type="content" source="media/vs-2019/vb-create-new-project-console-net-core.png" alt-text="Screenshot that shows how to choose the Visual Basic, Windows, and Console filter options and select the Console Application project template.":::
59+
:::image type="content" source="media/vs-2019/vb-create-new-project-console-net-core.png" alt-text="Screenshot that shows how to choose the Visual Basic, Windows, and Console filter options and select the Console Application project template." lightbox="media/vs-2019/vb-create-new-project-console-net-core.png":::
5960

6061
> [!NOTE]
6162
> If you do not see the **Console Application** template, you can install it from the **Create a new project** window. In the **Not finding what you're looking for?** message, choose the **Install more tools and features** link.
6263
>
63-
> :::image type="content" source="media/vs-2019/not-finding-what-looking-for.png" alt-text="Screenshot showing the 'Install more tools and features' link from the 'Not finding what you're looking for' message in the 'Create new project' window.":::
64+
> :::image type="content" source="media/vs-2019/not-finding-what-looking-for.png" alt-text="Screenshot showing the 'Install more tools and features' link in the 'Create new project' window.":::
6465
>
6566
> Then, in the Visual Studio Installer, choose the **.NET Core cross-platform development** workload.
6667
>
@@ -88,16 +89,16 @@ First, you create a Visual Basic app project. The default project template inclu
8889

8990
:::image type="content" source="media/vs-2022/create-new-project-dark-theme.png" alt-text="Screenshot showing the Visual Studio start window with 'Create a new project' selected.":::
9091

91-
1. In the **Create a new project** window, choose **Visual Basic** from the Language list. Next, choose **Windows** from the Platform list and **Console** from the Project types list.
92+
1. In the **Create a new project** window, choose **Visual Basic** from the language list. Next, choose **Windows** from the platform list and **Console** from the project types list.
9293

9394
After you apply the language, platform, and project type filters, choose the **Console App** template, and then choose **Next**.
9495

95-
:::image type="content" source="media/vs-2022/vb-create-new-project-console-net-core.png" alt-text="Screenshot that shows how to choose the Visual Basic, Windows, and Console filter options and select the Console Application project template.":::
96+
:::image type="content" source="media/vs-2022/vb-create-new-project-console-net-core.png" alt-text="Screenshot that shows how to choose the Visual Basic, Windows, and Console filter options and select the Console Application project template." lightbox="media/vs-2022/vb-create-new-project-console-net-core.png":::
9697

9798
> [!NOTE]
9899
> If you do not see the **Console App** template, you can install it from the **Create a new project** window. In the **Not finding what you're looking for?** message, choose the **Install more tools and features** link.
99100
>
100-
> :::image type="content" source="media/vs-2022/not-finding-what-looking-for.png" alt-text="Screenshot showing the 'Install more tools and features' link from the 'Not finding what you're looking for' message in the 'Create new project' window.":::
101+
> :::image type="content" source="media/vs-2022/not-finding-what-looking-for.png" alt-text="Screenshot showing the 'Install more tools and features' link in the 'Create new project' window.":::
101102
>
102103
> Then, in the Visual Studio Installer, choose the **.NET desktop development** workload.
103104
>
@@ -127,25 +128,25 @@ There are two ways to run this code, inside Visual Studio in *debug mode*, and f
127128

128129
::: moniker range="vs-2019"
129130

130-
:::image type="content" source="media/vs-2019/vb-ide-default-code.png" alt-text="Screenshot showing the default 'Hello World!' code.":::
131+
:::image type="content" source="media/vs-2019/vb-ide-default-code.png" alt-text="Screenshot showing the default 'Hello World' code." lightbox="media/vs-2019/vb-ide-default-code.png":::
131132

132133
1. Select the **WhatIsYourName** button or press **F5** to run the default code in Debug mode.
133134

134-
:::image type="content" source="media/vs-2019/vb-ide-whatisyourname-button.png" alt-text="Screenshot showing the 'What Is Your Name' button highlighted in the Visual Studio toolbar.":::
135+
:::image type="content" source="media/vs-2019/vb-ide-whatisyourname-button.png" alt-text="Screenshot showing the 'What Is Your Name' button highlighted in the Visual Studio toolbar." lightbox="media/vs-2019/vb-ide-whatisyourname-button.png":::
135136

136137
1. When the app runs in the Microsoft Visual Studio Debug Console, "Hello World!" displays. Press any key to close the debug console window and end the app:
137138

138-
:::image type="content" source="media/vs-2019/vb-console-hello-world-press-any-key.png" alt-text="Screenshot showing 'Hello World!' and the 'Press any key to close this window' messages.":::
139+
:::image type="content" source="media/vs-2019/vb-console-hello-world-press-any-key.png" alt-text="Screenshot showing 'Hello World!' and the 'Press any key to close this window' messages." lightbox="media/vs-2019/vb-console-hello-world-press-any-key.png":::
139140

140141
::: moniker-end
141142

142143
::: moniker range=">=vs-2022"
143144

144-
:::image type="content" source="media/vs-2022/vb-ide-default-code.png" alt-text="Screenshot showing the default 'Hello World!' code.":::
145+
:::image type="content" source="media/vs-2022/vb-ide-default-code.png" alt-text="Screenshot showing the default 'Hello World!' code." lightbox="media/vs-2022/vb-ide-default-code.png":::
145146

146147
1. Select the **WhatIsYourName** button or press **F5** to run the default code in Debug mode.
147148

148-
:::image type="content" source="media/vs-2022/vb-ide-whatisyourname-button.png" alt-text="Screenshot showing the 'What Is Your Name' button highlighted in the Visual Studio toolbar.":::
149+
:::image type="content" source="media/vs-2022/vb-ide-whatisyourname-button.png" alt-text="Screenshot showing the 'What Is Your Name' button highlighted in the Visual Studio toolbar." lightbox="media/vs-2022/vb-ide-whatisyourname-button.png":::
149150

150151
1. When the app runs in the Microsoft Visual Studio Debug Console, "Hello World!" displays. Press any key to close the debug console window and end the app:
151152

@@ -155,15 +156,15 @@ There are two ways to run this code, inside Visual Studio in *debug mode*, and f
155156

156157
### Run the app as a standalone
157158

158-
To see the output outside of Visual Studio, in a system console window, build and run the executable (.exe file).
159+
To see the output outside of Visual Studio, in a system console window, build and run the executable (`.exe` file).
159160

160161
::: moniker range="vs-2019"
161162

162163
1. In the **Build** menu, choose **Build Solution**.
163164

164165
1. In **Solution Explorer**, right-click on **WhatIsYourName** and choose **Open File in File Explorer**.
165166

166-
1. In **File Explorer**, navigate to the **bin\Debug\net5.0** directory and run **WhatIsYourName.exe**.
167+
1. In **File Explorer**, navigate to the *bin\Debug\net5.0* directory and run *WhatIsYourName.exe*.
167168

168169
1. The `Main` procedure terminates after its single statement executes and the console window closes immediately. To keep the console visible until the user presses a key, see the next section.
169170

@@ -175,7 +176,7 @@ To see the output outside of Visual Studio, in a system console window, build an
175176

176177
1. In **Solution Explorer**, right-click on **WhatIsYourName** and choose **Open File in File Explorer**.
177178

178-
1. In **File Explorer**, navigate to the **bin\Debug\net8.0** directory and run **WhatIsYourName.exe**.
179+
1. In **File Explorer**, navigate to the *bin\Debug\net8.0* directory and run *WhatIsYourName.exe*.
179180

180181
1. The `Main` procedure terminates after its single statement executes and the console window closes immediately. To keep the console visible until the user presses a key, see the next section.
181182

@@ -203,7 +204,7 @@ Next, you add Visual Basic code that prompts you for your name and then displays
203204
- <xref:System.DateTime> represents a datetime, and <xref:System.DateTime.Now> returns the current time.
204205
- <xref:System.Console.ReadKey> pauses the app and waits for a keypress.
205206

206-
:::image type="content" source="media/vs-2019/vb-code-window-whatisyourname-dark.png" alt-text="Screenshot showing the code for the 'Program.vb' file in the 'WhatIsYourName' project loaded in the Visual Basic code editor.":::
207+
:::image type="content" source="media/vs-2019/vb-code-window-whatisyourname-dark.png" alt-text="Screenshot showing the code for the 'Program.vb' file in the 'WhatIsYourName' project loaded in the Visual Basic code editor." lightbox="media/vs-2019/vb-code-window-whatisyourname-dark.png":::
207208

208209
1. Select the **WhatIsYourName** button or press **F5** to build and run your first app in Debug mode.
209210

@@ -245,7 +246,7 @@ Next, you add Visual Basic code that prompts you for your name and then displays
245246

246247
::: moniker-end
247248

248-
Now that your new code is in the app, build and run the executable (.exe file) in a system console window, as described previously in [Run the app as a standalone](#run-the-app-as-a-standalone). Now when you press a key, the app exits, which closes the console window.
249+
Now that your new code is in the app, build and run the executable (`.exe` file) in a system console window, as described previously in [Run the app as a standalone](#run-the-app-as-a-standalone). Now when you press a key, the app exits, which closes the console window.
249250

250251
## Extra credit: Add two numbers
251252

@@ -264,7 +265,7 @@ Module Program
264265
End Module
265266
```
266267

267-
to:
268+
To:
268269

269270
```vb
270271
Module Program
@@ -296,19 +297,19 @@ If you're not going to continue to use this app, delete the project.
296297

297298
1. Close Visual Studio.
298299

299-
1. In the **File Explorer** dialog, go up two levels of folders.
300+
1. In the **File Explorer** dialog box, go up two levels of folders.
300301

301302
1. Right-click on the **WhatIsYourName** folder and select **Delete**.
302303

303-
## Next steps
304+
## Related content
304305

305-
Congratulations on completing this tutorial! To learn more, see the following tutorial.
306+
- [Visual Basic language walkthroughs](/dotnet/visual-basic/walkthroughs)
307+
- [Visual Basic language reference](/dotnet/visual-basic/language-reference/index)
308+
- [IntelliSense for Visual Basic code files](../../ide/visual-basic-specific-intellisense.md)
306309

307-
> [!div class="nextstepaction"]
308-
> [Build a library with Visual Basic and the .NET Core SDK in Visual Studio](/dotnet/core/tutorials/vb-library-with-visual-studio)
310+
## Next step
309311

310-
## See also
312+
Congratulations on completing this tutorial! To learn more, see the following tutorial.
311313

312-
* [Visual Basic language walkthroughs](/dotnet/visual-basic/walkthroughs)
313-
* [Visual Basic language reference](/dotnet/visual-basic/language-reference/index)
314-
* [IntelliSense for Visual Basic code files](../../ide/visual-basic-specific-intellisense.md)
314+
> [!div class="nextstepaction"]
315+
> [Tutorial: Create a .NET class library using Visual Studio](/dotnet/core/tutorials/vb-library-with-visual-studio)

0 commit comments

Comments
 (0)