Skip to content

Commit 87f73cb

Browse files
Merge pull request #10447 from MicrosoftDocs/main638647238567332570sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 3bb40e1 + 922e97d commit 87f73cb

File tree

9 files changed

+40
-57
lines changed

9 files changed

+40
-57
lines changed

bridge/articles/bridge-to-kubernetes-vs-code.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ Learn more about Bridge to Kubernetes at [How Bridge to Kubernetes works][btk-ho
201201

202202
If you need to debug multiple services at the same time in parallel, see [Debug multiple services at the same time](parallel-services.md).
203203

204-
Information about the currently supported features and a future roadmap for Bridge to Kubernetes may be found at [Bridge to Kubernetes roadmap](https://github.com/microsoft/mindaro/projects/1).
205-
206204
[azure-kubernetes-service]: /azure/aks/kubernetes-walkthrough
207205
[azds-cli]: /azure/dev-spaces/how-to/install-dev-spaces#install-the-client-side-tools
208206
[azds-tmp-dir]: /azure/dev-spaces/troubleshooting#before-you-begin

bridge/articles/bridge-to-kubernetes-vs.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ If you cloned that repo locally, you can delete it manually.
186186

187187
Learn more about Bridge to Kubernetes at [How Bridge to Kubernetes works](overview-bridge-to-kubernetes.md).
188188

189-
For information about supported features and a roadmap for Bridge to Kubernetes, see [Bridge to Kubernetes roadmap](https://github.com/microsoft/mindaro/projects/1).
190-
191189
To learn how to connect your development computer to a cluster by using Visual Studio Code, check out this article:
192190
> [!div class="nextstepaction"]
193191
> [Use Bridge to Kubernetes (VS Code)](bridge-to-kubernetes-vs-code.md)
161 KB
Loading
127 KB
Loading
148 KB
Loading
62.2 KB
Loading

docs/get-started/csharp/tutorial-aspnet-core.md

Lines changed: 20 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ ms.author: meghaanand
66
manager: mijacobs
77
ms.subservice: general-ide
88
ms.topic: tutorial
9-
ms.date: 11/17/2023
10-
9+
ms.date: 10/17/2024
1110
dev_langs:
1211
- CSharp
1312
ms.devlang: csharp
13+
#customer intent: As a developer, I want to create a ASP.NET Core web application with C# in Visual Studio.
1414
---
1515
# Tutorial: Get started with C# and ASP.NET Core in Visual Studio
1616

@@ -28,11 +28,10 @@ This tutorial shows you how to:
2828
2929
## Prerequisites
3030

31-
You need Visual Studio to complete this tutorial. Visit the [Visual Studio downloads page](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-tutorial-create-csharp-aspnetcore-web-app-page-cta) for a free version.
32-
33-
- For more information about upgrading to the latest Visual Studio release, see [Visual Studio updates](../../install/update-visual-studio.md).
31+
To complete this tutorial, you need:
3432

35-
- To customize your Visual Studio experience, see [personalize the Visual Studio IDE and Editor](../../ide/personalizing-the-visual-studio-ide.md).
33+
- Visual Studio installed. Visit the [Visual Studio downloads page](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-tutorial-create-csharp-aspnetcore-web-app-page-cta) for a free version. For more information about upgrading to the latest Visual Studio release, see [Visual Studio updates](../../install/update-visual-studio.md).
34+
- The **ASP.NET and web development** workload installed. To verify or install this workload in Visual Studio, select **Tools** > **Get Tools and Features**. For more information, see [Change workloads or individual components](../../install/modify-visual-studio.md#change-workloads-or-individual-components).
3635

3736
## Create a project
3837

@@ -50,21 +49,6 @@ First, you create an ASP.NET Core project. The project type comes with all the t
5049

5150
:::image type="content" source="./media/vs-2019/csharp-create-new-project-aspnet-core.png" alt-text="Screenshot that shows the ASP.NET Core Web App project template highlighted in the New Project dialog box in Visual Studio." lightbox="./media/vs-2019/csharp-create-new-project-aspnet-core.png":::
5251

53-
> [!NOTE]
54-
> If you don't see the **ASP.NET Core Web App** template, you can install it from the **Create a new project** window.
55-
>
56-
> In the **Not finding what you're looking for?** message at the bottom of the list of templates, select the **Install more tools and features** link.
57-
>
58-
> ![Screenshot shows the Install more tools and features link that is part of the Not finding what you're looking for message.](../../get-started/media/vs-2019/not-finding-what-looking-for.png)
59-
>
60-
> In the Visual Studio Installer, select **ASP.NET and web development**.
61-
>
62-
> ![Screenshot shows the dot NET Core cross-platform development workload in the Visual Studio Installer.](../../get-started/media/aspnet-core-web-dev-workload.png)
63-
>
64-
> Select **Modify** in the Visual Studio Installer. You might be prompted to save your work. Select **Continue** to install the workload.
65-
>
66-
> Return to step 2 in this "[Create a project](#create-a-project)" procedure.
67-
6852
1. In the **Configure your new project** window, enter **MyCoreApp** in the **Project name** field. Then, select **Next**.
6953

7054
:::image type="content" source="./media/vs-2019/csharp-name-your-aspnet-app.png" alt-text="Screenshot that shows the Configure your new project window in Visual Studio with MyCoreApp entered in the Project name field." lightbox="./media/vs-2019/csharp-name-your-aspnet-app.png":::
@@ -94,43 +78,28 @@ Visual Studio opens your new project.
9478

9579
:::image type="content" source="media/vs-2022/start-window-create-new-project.png" border="false" alt-text="Screenshot shows the start window for Visual Studio. Create a new project option is highlighted.":::
9680

97-
1. In the **Create a new project** window, select **C#** from the Language list. Next, select **Windows** from the platform list, and **Web** from the project types list.
81+
1. In the **Create a new project** window, select **C#** from the Language list. Next, select **Windows** from the **All platforms** list, and **Web** from the **All project types** list.
9882

99-
After you apply the language, platform, and project type filters, select the **ASP.NET Core Web App** template, and then select **Next**.
83+
After you apply the language, platform, and project type filters, select the **ASP.NET Core Web App (Razor Pages)** template, and then select **Next**.
10084

10185
:::image type="content" source="media/vs-2022/csharp-create-new-project-aspnet-core.png" border="false" alt-text="Screenshot that shows the ASP.NET Core Web App project template selected and highlighted on the Create a new project page." lightbox="media/vs-2022/csharp-create-new-project-aspnet-core.png":::
10286

103-
> [!NOTE]
104-
> If you don't see the **ASP.NET Core Web App** template, you can install it from the **Create a new project** window.
105-
>
106-
> In the **Not finding what you're looking for?** message at the bottom of the list of templates, select the **Install more tools and features** link.
107-
>
108-
> :::image type="content" source="media/vs-2022/not-finding-what-looking-for.png" alt-text="Screenshot shows the Install more tools and features link that is part of the Not finding what you're looking for message.":::
109-
>
110-
> In the Visual Studio Installer, select the **ASP.NET and web development** workload.
111-
>
112-
> :::image type="content" source="media/vs-2022/aspnet-core-web-dev-workload.png" alt-text="Screenshot shows the ASP.NET and web development workload in the Visual Studio Installer.":::
113-
>
114-
> Select **Modify** in the Visual Studio Installer. You might be prompted to save your work. Select **Continue** to install the workload.
115-
>
116-
> Return to step 2 in this "[Create a project](#create-a-project)" procedure.
117-
11887
1. In the **Configure your new project** window, enter **MyCoreApp** in the **Project name** field. Then, select **Next**.
11988

12089
:::image type="content" source="media/vs-2022/csharp-name-your-aspnet-app.png" border="false" alt-text="Screenshot that shows the Configure your new project window in Visual Studio with MyCoreApp entered in the Project name field." lightbox="media/vs-2022/csharp-name-your-aspnet-app.png":::
12190

12291
1. In the **Additional information** window, verify that **.NET 8.0** appears in the **Target Framework** field.
12392

124-
From this window, you can enable Docker support and add authentication support. The drop-down menu for **Authentication Type** has the following four options:
93+
From this window, you can enable container support and add authentication support. The drop-down menu for **Authentication Type** has the following four options:
12594

12695
- **None**: No authentication.
12796
- **Individual accounts**: These authentications are stored in a local or Azure-based database.
12897
- **Microsoft identity platform**: This option uses Microsoft Entra ID or Microsoft 365 for authentication.
12998
- **Windows**: Suitable for intranet applications.
13099

131-
Leave the **Enable Docker** box unchecked, and select **None** for Authentication Type.
100+
Leave the **Enable container support** box unchecked, and select **None** for Authentication Type.
132101

133-
:::image type="content" source="media/vs-2022/aspnet-core-additional-information.png" border="false" alt-text="Screenshot that shows the default settings in the Additional information window where the target framework is set to .NET 8.0." lightbox="media/vs-2022/aspnet-core-additional-information.png":::
102+
:::image type="content" source="media/vs-2022/aspnet-core-enable-container-window.png" border="false" alt-text="Screenshot that shows the default settings in the Additional information window where the target framework is set to .NET 8.0." lightbox="media/vs-2022/aspnet-core-additional-information.png":::
134103

135104
1. Select **Create**.
136105

@@ -309,14 +278,13 @@ This solution follows the **Razor Page** design pattern. It's different than the
309278

310279
## Run, debug, and make changes
311280

312-
1. In the toolbar, select the **IIS Express** button to build and run the app in debug mode. Alternatively, press **F5**, or go to **Debug** > **Start Debugging** from the menu bar.
281+
1. In the toolbar, select the **https** button to build and run the app in debug mode. Alternatively, press **F5**, or go to **Debug** > **Start Debugging** from the menu bar.
313282

314-
:::image type="content" source="media/vs-2022/csharp-aspnet-razor-iis-express.png" alt-text="Screenshot shows the I I S Express button highlighted in the toolbar in Visual Studio.":::
283+
:::image type="content" source="media/vs-2022/aspnet-core-https-build-run.png" alt-text="Screenshot shows the https button highlighted in the toolbar in Visual Studio.":::
315284

316285
> [!NOTE]
317-
> If you get an error message that says **Unable to connect to web server 'IIS Express'**, close Visual Studio and then relaunch the program as an administrator. You can do this task by right-clicking the Visual Studio icon from the Start Menu, and then selecting the **Run as administrator** option from the context menu.
318-
>
319-
> You might also get a message that asks if you want to accept an IIS SSL Express certificate. To view the code in a web browser, select **Yes**, and then select **Yes** if you receive a follow-up security warning message.
286+
> You might also get a message that asks if you want to accept an ASP.NET Core SSL certificate. To view the code in a web browser, select **Yes**, and then select **Yes** if you receive a follow-up security warning message.
287+
> Learn more about [enforcing SSL in ASP.NET Core](/aspnet/core/security/enforcing-ssl).
320288
321289
1. Visual Studio launches a browser window. You should then see **Home** and **Privacy** pages in the menu bar.
322290

@@ -347,7 +315,7 @@ This solution follows the **Razor Page** design pattern. It's different than the
347315
- The first argument for the method specifies how the date should be displayed. This example uses the format specifier (`d`) which indicates the short date format.
348316
- The second argument is the [CultureInfo](/dotnet/api/system.globalization.cultureinfo) object that specifies the culture or region for the date. The second argument determines, among other things, the language of any words in the date, and the type of separators used.
349317

350-
Change the body of the `OnGet()` method to the following code:
318+
Change the body of the `OnGet()` method in **Privacy.cshtml.cs** to the following code:
351319

352320
```csharp
353321
public void OnGet()
@@ -391,9 +359,9 @@ This solution follows the **Razor Page** design pattern. It's different than the
391359

392360
:::image type="content" source="media/vs-2022/csharp-aspnet-index-cshtml-page-hello-world.png" alt-text="Screenshot shows the Index.cshtml file in the Visual Studio Code editor with the 'Welcome' text changed to 'Hello World!'.":::
393361

394-
1. Select **IIS Express** or press **Ctrl**+**F5** to run the app and open it in a web browser.
362+
1. Select **https** or press **Ctrl**+**F5** to run the app and open it in a web browser.
395363

396-
:::image type="content" source="media/vs-2022/csharp-aspnet-generic-iis-button.png" alt-text="Screenshot shows the IIS Express button highlighted in the toolbar for Visual Studio.":::
364+
:::image type="content" source="media/vs-2022/csharp-aspnet-core-https-button.png" alt-text="Screenshot shows the https button highlighted in the toolbar for Visual Studio.":::
397365

398366
1. In the web browser, you see your new changes on the **Home** page.
399367

@@ -415,6 +383,7 @@ Or, learn how to containerize your web app with Docker:
415383
> [!div class="nextstepaction"]
416384
> [Container Tools in Visual Studio](../../containers/overview.md)
417385
418-
## See also
386+
## Related links
419387

420-
[Publish your web app to Azure App Service by using Visual Studio](../../deployment/quickstart-deploy-aspnet-web-app.md)
388+
- [Publish your web app to Azure App Service by using Visual Studio](../../deployment/quickstart-deploy-aspnet-web-app.md)
389+
- [Personalize the Visual Studio IDE and Editor](../../ide/personalizing-the-visual-studio-ide.md)

docs/ide/reference/build-devenv-exe.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,32 @@ devenv SolutionName /Build [SolnConfigName [/Project ProjName [/ProjectConfig Pr
5858
5959
- If you get an error message that says **Invalid project configuration**, make sure that you've specified a solution platform or project platform (for example, `Debug|Win32`).
6060
61-
## Example
61+
## Examples
6262
6363
The following command builds the project `CSharpWinApp`, using the `Debug` project build configuration within `MySolution`.
6464
6565
```shell
6666
devenv "%USERPROFILE%\source\repos\MySolution.sln" /build Debug /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
6767
```
6868
69+
And to clean up all the build files:
70+
71+
```shell
72+
devenv "%USERPROFILE%\source\repos\MySolution.sln" /clean
73+
```
74+
75+
## Build a setup project
76+
77+
To build an installer (`.msi` file), you need a [setup project](../../deployment/installer-projects-net-core.md), which has a `.vdproj` project file, but to build it you first need to apply a workaround that sets a particular registry key. From the Visual Studio Developer command prompt, run the executable *DisableOutOfProcBuild.exe* from the folder *Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild*. Without this workaround, you may get the error: `ERROR: An error occurred while validating. HRESULT = '8000000A'`. The command affects the current user, so for build agent scenarios, be sure to run it from the same account that runs the build. For more information, see the *README.txt* file in the same folder.
78+
79+
Also, in Visual Studio, you can create a new [configuration](../../ide/understanding-build-configurations.md), say `Setup`, based on the `Release` configuration, and select the setup project as a project to build. By default, setup projects aren't included in the default configurations, `Debug` and `Release`. With the `Setup` configuration defined, the following commands build a project `WindowsFormsApp1` and its associated setup project to generate the `.msi` file:
80+
81+
```shell
82+
devenv WindowsFormsApp1.sln /build Setup
83+
```
84+
85+
If the solution was already built with the **Release** configuration, this command just builds the setup project.
86+
6987
## See also
7088
7189
- [Build and clean projects and solutions](../../ide/building-and-cleaning-projects-and-solutions-in-visual-studio.md)

docs/version-control/git-with-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Not only can you add both [GitHub and GitHub Enterprise accounts to your keychai
2929

3030
:::image type="content" source="media/vs-2022/git-source-control-create-repository.png" alt-text="Screenshot of the Create a Git Repository dialog box in Visual Studio." lightbox="media/vs-2022/git-source-control-create-repository.png":::
3131

32-
If you want to use git commands at the command line, you should also install [Git for Windows](https://book.git-scm.com/download/win) (not a Microsoft product).
32+
If you want to use git commands at the command line, you should also install [Git for Windows](https://git-scm.com/downloads/win) (not a Microsoft product).
3333

3434
## View files in Solution Explorer
3535

0 commit comments

Comments
 (0)