You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/azure/includes/vs-2019/create-aspnet5-app-2019.md
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,23 @@ author: ghogen
5
5
ms.subservice: azure-development
6
6
ms.author: ghogen
7
7
ms.topic: include
8
-
ms.date: 03/08/2021
8
+
ms.date: 08/22/2024
9
9
---
10
10
11
11
1. In the Visual Studio start window, select **Create a new project**.
12
+
12
13
1. Select **ASP.NET Core Web App**, and then select **Next**.
14
+
13
15
1. Enter a name for your new application (or use the default name), specify the location on disk, and then select **Next**.
14
-
1. Choose the .NET version you want to target. If you don't know, [choose the LTS (long-term support) release](https://dotnet.microsoft.com/download/dotnet).
15
16
16
-

17
+
1. Select the .NET version you want to target. If you're not sure, [choose the LTS (long-term support) release](https://dotnet.microsoft.com/download/dotnet).
18
+
19
+
:::image type="content" source="../../media/create-aspnet5-app/net-core-50-enable-docker-support-visual-studio.png" border="false" alt-text="Screenshot that shows how to create a new ASP.NET Core web app project in Visual Studio 2019.":::
17
20
18
21
1. Choose whether you want SSL support by selecting or clearing the **Configure for HTTPS** checkbox.
22
+
19
23
1. Select the **Enable Docker Support** checkbox.
20
-
1. Select the type of container you want (Windows or Linux), and then select **Create**.
24
+
25
+
1. Use the dropdown list to select the type of container you want: **Windows** or **Linux**.
Copy file name to clipboardExpand all lines: docs/azure/includes/vs-2022/create-aspnet5-app-2022.md
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,23 @@ author: ghogen
5
5
ms.subservice: azure-development
6
6
ms.author: ghogen
7
7
ms.topic: include
8
-
ms.date: 10/25/2021
8
+
ms.date: 08/22/2024
9
9
---
10
10
11
11
1. In the Visual Studio start window, select **Create a new project**.
12
+
12
13
1. Select **ASP.NET Core Web App**, and then select **Next**.
14
+
13
15
1. Enter a name for your new application (or use the default name), specify the location on disk, and then select **Next**.
14
-
1. Choose the .NET version you want to target. If you don't know, [choose the LTS (long-term support) release](https://dotnet.microsoft.com/download/dotnet).
15
16
16
-

17
+
1. Select the .NET version you want to target. If you're not sure, [choose the LTS (long-term support) release](https://dotnet.microsoft.com/download/dotnet).
18
+
19
+
:::image type="content" source="../../media/create-aspnet5-app/asp-net-enable-docker-support-visual-studio.png" border="false" alt-text="Screenshot that shows how to create a new ASP.NET Core web app project in Visual Studio 2022.":::
17
20
18
21
1. Choose whether you want SSL support by selecting or clearing the **Configure for HTTPS** checkbox.
22
+
19
23
1. Select the **Enable Docker** checkbox.
20
-
1. In the **Docker OS** textbox, select the type of container you want (Windows or Linux), and then select **Create**.
24
+
25
+
1. Use the **Docker OS** dropdown list to select the type of container you want: **Windows** or **Linux**.
Copy file name to clipboardExpand all lines: docs/containers/hosting-web-apps-in-docker.md
+66-47Lines changed: 66 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -6,103 +6,122 @@ manager: mijacobs
6
6
ms.devlang: dotnet
7
7
ms.topic: how-to
8
8
ms.subservice: container-tools
9
-
ms.date: 10/27/2021
9
+
ms.date: 08/22/2024
10
10
ms.author: ghogen
11
+
12
+
#customer intent: As a developer, I want to use Visual Studio Container Tools, so I can deploy a containerized ASP.NET or ASP.NET Core web app to Azure Container Registry.
11
13
---
12
14
13
15
# Deploy an ASP.NET container to a container registry using Visual Studio
14
16
15
17
Docker is a lightweight container engine, similar in some ways to a virtual machine, which you can use to host applications and services.
16
-
This tutorial walks you through using Visual Studio to publish your containerized application to an [Azure Container Registry](https://azure.microsoft.com/services/container-registry).
18
+
This tutorial walks you through using Visual Studio to publish your containerized application to an [Azure Container Registry](https://azure.microsoft.com/products/container-registry).
17
19
18
-
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/dotnet/?utm_source=acr-publish-doc&utm_medium=docs&utm_campaign=docs) before you begin.
20
+
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/pricing/purchase-options/azure-account?icid=dotnet?utm_source=acr-publish-doc&utm_medium=docs&utm_campaign=docs) before you begin.
19
21
20
22
## Prerequisites
21
23
22
-
To complete this tutorial:
23
-
24
24
::: moniker range="vs-2019"
25
-
- Install the latest version of [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) with the "ASP.NET and web development" workload
26
-
- Install [Docker Desktop for Windows](https://docs.docker.com/desktop/windows/install/)
25
+
26
+
- Install the latest version of [Visual Studio 2019](https://visualstudio.microsoft.com/vs/older-downloads/) with the "ASP.NET and web development" workload.
27
+
27
28
::: moniker-end
28
29
::: moniker range=">=vs-2022"
29
-
- Install the latest version of [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) with the "ASP.NET and web development" workload
30
-
- Install [Docker Desktop for Windows](https://docs.docker.com/desktop/windows/install/)
30
+
31
+
- Install the latest version of [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) with the "ASP.NET and web development" workload.
32
+
31
33
:::moniker-end
32
34
35
+
- Install [Docker Desktop for Windows](https://docs.docker.com/desktop/windows/install/).
36
+
33
37
## Create an ASP.NET Core web app
34
38
35
-
The following steps guide you through creating a basic ASP.NET Core app that will be used in this tutorial. If you already have a project, you can skip this section.
39
+
The following steps guide you through creating a basic ASP.NET Core app that you use in this tutorial. If you already have a project, you can skip this section.
## Publish your container to Azure Container Registry
53
+
44
54
::: moniker range="vs-2019"
45
55
46
-
## Publish your container to Azure Container Registry
56
+
1. Right-click your project in **Solution Explorer** and choose **Publish**. The **Publish** dialog opens.
47
57
48
-
1. Right-click your project in **Solution Explorer** and choose **Publish**.
49
-
2. On the **Publish** dialog, select **Docker Container Registry**.
58
+
1. On the **Target** tab, select **Docker Container Registry**, and then select **Next**.
50
59
51
-

60
+
:::image type="content" source="media/container-tools/vs-2019/docker-container-registry.png" border="false" alt-text="Screenshot that shows the Publish dialog and how to choose Docker Container Registry.":::
52
61
53
-
3. Choose **Create New Azure Container Registry**.
62
+
1. On the **Specific target** tab, select **Azure Container Registry**, and then select **Next**.
54
63
55
-

64
+
1. On the **Container Registry** tab, select the **Create a new Azure Container Registry** option at the bottom:
56
65
57
-
4. Fill in your desired values in the **Azure Container Registry** screen.
66
+
:::image type="content" source="media/container-tools/vs-2019/select-existing-or-create-new-azure-container-registry.png" border="false" alt-text="Screenshot of the Publish dialog that shows how to choose Create New Azure container registry.":::
|**DNS Prefix**| Globally unique name | Name that uniquely identifies your container registry. |
62
-
|**Subscription**| Choose your subscription | The Azure subscription to use. |
63
-
|**[Resource Group](/azure/azure-resource-manager/resource-group-overview)**| myResourceGroup | Name of the resource group in which to create your container registry. Choose **New** to create a new resource group.|
64
-
|**[SKU](/azure/container-registry/container-registry-skus)**| Standard | Service tier of the container registry |
65
-
|**Registry Location**| A location close to you | Choose a Location in a [region](https://azure.microsoft.com/regions/) near you or near other services that will use your container registry. |
68
+
1. On the **Azure Container Registry** page, enter your values for the new resource:
66
69
67
-

|**DNS Prefix**| Globally unique name | Name that uniquely identifies your container registry. |
73
+
|**Subscription**| Your subscription | The Azure subscription to use. |
74
+
|**[Resource Group](/azure/azure-resource-manager/management/overview)**| Your resource group | Name of the resource group in which to create your container registry. Select **New** to create a new resource group. |
75
+
|**[SKU](/azure/container-registry/container-registry-skus)**| "Standard" | Select the service tier of the container registry. |
76
+
|**Registry Location**| A nearby location | Choose a location in a [region](https://azure.microsoft.com/explore/global-infrastructure/geographies/) close to you or close to other services that you expect to use the container registry. |
68
77
69
-
5. Click **Create**.
78
+
:::image type="content" source="media/hosting-web-apps-in-docker/vs-azure-container-registry-provisioning-dialog-2019.png" border="false" alt-text="Screenshot that shows how to enter values in the dialog to create a new Azure Container Registry.":::
70
79
71
-
6. Choose **Finish** to complete the process.
72
-
::: moniker-end
80
+
1. After you enter the resource values, select **Create**.
81
+
82
+
Visual Studio validates the property values and creates the new container resource.
83
+
When the process completes, Visual Studio returns to the **Publish** dialog and selects the new container in the list.
84
+
85
+
1. Select **Finish** to publish the new container.
73
86
87
+
::: moniker-end
74
88
::: moniker range=">=vs-2022"
75
89
76
-
## Publish your container to Azure Container Registry
90
+
1. Right-click your project in **Solution Explorer** and choose **Publish**. The **Publish** dialog opens.
91
+
92
+
1. On the **Target** tab, select **Docker Container Registry**, and then select **Next**.
93
+
94
+
:::image type="content" source="media/container-tools/vs-2022/docker-container-registry.png" border="false" alt-text="Screenshot that shows the Publish dialog and how to choose Docker Container Registry.":::
95
+
96
+
1. On the **Specific target** tab, select **Azure Container Registry**, and then select **Next**.
77
97
78
-
1. Right-click your project in **Solution Explorer** and choose **Publish**.
79
-
2. On the **Publish** dialog, select **Docker Container Registry**.
98
+
1. On the **Registry** tab, select the **Create new** (+) option at the right:
80
99
81
-

100
+
:::image type="content" source="media/container-tools/vs-2022/select-existing-or-create-new-azure-container-registry.png" border="false" alt-text="Screenshot of the Publish dialog that shows how to choose Create New Azure container registry.":::
82
101
83
-
3. Choose **Create New Azure Container Registry**.
102
+
1. Fill in your desired values in the **Azure Container Registry** screen.
84
103
85
-

|**DNS Prefix**| Globally unique name | Name that uniquely identifies your container registry. |
107
+
|**Subscription**| Your subscription | The Azure subscription to use. |
108
+
|**[Resource Group](/azure/azure-resource-manager/management/overview)**| Your resource group | Name of the resource group in which to create your container registry. Select **New** to create a new resource group. |
109
+
|**[SKU](/azure/container-registry/container-registry-skus)**| "Standard" | Select the service tier of the container registry. |
110
+
|**Registry Location**| A nearby location | Choose a location in a [region](https://azure.microsoft.com/explore/global-infrastructure/geographies/) close to you or close to other services that you expect to use the container registry. |
86
111
87
-
4. Fill in your desired values in the **Azure Container Registry** screen.
112
+
:::image type="content" source="media/container-tools/vs-2022/vs-azure-container-registry-provisioning-dialog.png" border="false" alt-text="Screenshot that shows how to enter values in the dialog to create a new Azure Container Registry.":::
|**DNS Prefix**| Globally unique name | Name that uniquely identifies your container registry. |
92
-
|**Subscription**| Choose your subscription | The Azure subscription to use. |
93
-
|**[Resource Group](/azure/azure-resource-manager/resource-group-overview)**| myResourceGroup | Name of the resource group in which to create your container registry. Choose **New** to create a new resource group.|
94
-
|**[SKU](/azure/container-registry/container-registry-skus)**| Standard | Service tier of the container registry |
95
-
|**Registry Location**| A location close to you | Choose a Location in a [region](https://azure.microsoft.com/regions/) near you or near other services that will use your container registry. |
114
+
1. After you enter the resource values, select **Create**.
96
115
97
-

116
+
Visual Studio validates the property values and creates the new container resource.
117
+
When the process completes, Visual Studio returns to the **Publish** dialog and selects the new container in the list.
98
118
99
-
5. Click**Create**.
119
+
1. Select**Finish** to publish the new container.
100
120
101
-
6. Choose **Finish** to complete the process.
102
121
::: moniker-end
103
122
104
-
You can now pull the container from the registry to any host capable of running Docker images, for example[Azure Container Instances](/azure/container-instances/container-instances-tutorial-deploy-app).
123
+
You can now pull the container from the registry to any host capable of running Docker images, such as[Azure Container Instances](/azure/container-instances/container-instances-tutorial-deploy-app).
105
124
106
125
## Related content
107
126
108
-
[Quickstart: Deploy a container instance in Azure using the Azure CLI](/azure/container-instances/container-instances-quickstart)
127
+
-[Quickstart: Deploy a container instance in Azure using the Azure CLI](/azure/container-instances/container-instances-quickstart)
Copy file name to clipboardExpand all lines: docs/designers/windows-forms-designer-overview.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,12 @@ Using the designer you can:
31
31
> [!NOTE]
32
32
> Use Windows Forms Designer, and not the Resource Editor, to make changes to a form's resource (*.resx*) file. If you edit a form-based .resx file, you'll see a warning that changes you make in the Resource Editor may be lost. This is because the Windows Forms Designer generates the .resx file.
33
33
34
+
> [!CAUTION]
35
+
> Windows Forms Designer executes application code when displaying controls or forms on the design surface. Only open projects from [trusted locations](..\ide\reference\trust-settings.md).
36
+
37
+
> [!CAUTION]
38
+
> Resources in `.resx` files may be serialized using `BinaryFormatter`, which is [not secure](/dotnet/standard/serialization/binaryformatter-security-guide). Only use Windows Forms Designer to work with forms and controls that you trust.
39
+
34
40
## See also
35
41
36
42
-[Windows Forms overview](/dotnet/framework/winforms/windows-forms-overview)
0 commit comments