Skip to content

Commit 2fb6aeb

Browse files
committed
Merge branch 'resources' of github.com:ghogen/vsdocs into resources
2 parents 65b0440 + 5cdcfa9 commit 2fb6aeb

File tree

360 files changed

+1106
-812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

360 files changed

+1106
-812
lines changed

.openpublishing.redirection.mac.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
"redirect_url": "/visualstudio/gamedev/unity/get-started/getting-started-with-visual-studio-tools-for-unity",
5656
"redirect_document_id": false
5757
},
58+
{
59+
"source_path_from_root": "/mac/what-happened-to-vs-for-mac.md",
60+
"redirect_url": "/visualstudio/releases/2022/what-happened-to-vs-for-mac",
61+
"redirect_document_id": false
62+
},
5863
{
5964
"source_path": "mac/2017/accessibility-keyboard.md",
6065
"redirect_url": "/previous-versions/visualstudio/mac/accessibility-keyboard",

docs/azure/how-to-sign-in-with-azure-subscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Visual Studio also gives you the opportunity to [create a new, free Azure accoun
2323
Visual Studio allows you to sign in with multiple accounts and it let's you work with Azure resources across multiple Azure subscriptions so no need to sign-out of one in order to sign-in with another!
2424

2525
> [!NOTE]
26-
> When using Azure CLI, be aware that the sign-in from the Azure CLI is separate from the sign-in used in Visual Studio, so even if you're signed in to Azure by using `az login` on the same machine where you're running Visual Studio, you still need to provide credentials within Visual Studio.
26+
> When using the Azure CLI, be aware that the sign-in from the Azure CLI is separate from the sign-in used in Visual Studio, so even if you're signed in to Azure by using `az login` on the same machine where you're running Visual Studio, you still need to provide credentials within Visual Studio.
2727
2828
## To sign in to Azure from a dialog or wizard screen
2929

docs/azure/includes/vs-2019/create-aspnet5-app-2019.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,23 @@ author: ghogen
55
ms.subservice: azure-development
66
ms.author: ghogen
77
ms.topic: include
8-
ms.date: 03/08/2021
8+
ms.date: 08/22/2024
99
---
1010

1111
1. In the Visual Studio start window, select **Create a new project**.
12+
1213
1. Select **ASP.NET Core Web App**, and then select **Next**.
14+
1315
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).
1516

16-
![Create a web project - Additional information screen](../../media/create-aspnet5-app/net-core-50-enable-docker-support-visual-studio.png)
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.":::
1720

1821
1. Choose whether you want SSL support by selecting or clearing the **Configure for HTTPS** checkbox.
22+
1923
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**.
26+
27+
1. Select **Create** to complete the process.

docs/azure/includes/vs-2022/create-aspnet5-app-2022.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,23 @@ author: ghogen
55
ms.subservice: azure-development
66
ms.author: ghogen
77
ms.topic: include
8-
ms.date: 10/25/2021
8+
ms.date: 08/22/2024
99
---
1010

1111
1. In the Visual Studio start window, select **Create a new project**.
12+
1213
1. Select **ASP.NET Core Web App**, and then select **Next**.
14+
1315
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).
1516

16-
![Create a web project - Additional information screen](../../media/create-aspnet5-app/asp-net-enable-docker-support-visual-studio.png)
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.":::
1720

1821
1. Choose whether you want SSL support by selecting or clearing the **Configure for HTTPS** checkbox.
22+
1923
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**.
26+
27+
1. Select **Create** to complete the process.
Binary file not shown.

docs/azure/vs-azure-tools-configuring-an-azure-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You can configure an Azure cloud service project, depending on your requirements
4141

4242
1. Set **Treat warnings as errors** to **True** to make sure you cannot publish if there are package validation errors.
4343

44-
1. Set **Use web project ports** to **True** to make sure that your web role uses the same port each time it starts locally in IIS Express.
44+
1. Set **Use web project ports** to **True** to make sure that your web role uses the same port each time it starts locally in Internet Information Services (IIS) Express.
4545

4646
1. From the Visual Studio toolbar, select **Save**.
4747

docs/azure/vs-azure-tools-emulator-express-debug-run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ When you create an Azure project, Emulator Express is automatically used. For ex
2727

2828
![Properties for an Azure cloud service project](./media/vs-azure-tools-emulator-express-debug-run/web-properties.png)
2929

30-
1. Under **Local Development Server**, select **Use IIS Express option**.
30+
1. Under **Local Development Server**, select **Use Internet Information Services (IIS) Express option**.
3131

3232
1. Under **Emulator**, select **Use Emulator Express**.
3333

docs/azure/vs-key-vault-add-connected-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Affects the project file .NET references and NuGet package references.
7878

7979
### launchsettings.json changes for ASP.NET Core
8080

81-
- Added the following environment variable entries to both the IIS Express profile and the profile that matches your web project name:
81+
- Added the following environment variable entries to both the Internet Information Services (IIS) Express profile and the profile that matches your web project name:
8282

8383
```json
8484
"environmentVariables": {
-139 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/containers/container-build.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,53 @@ ENTRYPOINT ["dotnet", "WebApplication43.dll"]
6666

6767
The final stage starts again from `base`, and includes the `COPY --from=publish` to copy the published output to the final image. This process makes it possible for the final image to be a lot smaller, since it doesn't need to include all of the build tools that were in the `sdk` image.
6868

69+
The following table summarize the stages used in the typical Dockerfile created by Visual Studio:
70+
71+
| Stage | Description |
72+
| - | - |
73+
| base | Creates the base runtime image where the built app is published. Settings that need to be available at runtime go here, such as ports and environment variables. This stage is used when running from VS in fast mode (Default for Debug configuration). |
74+
| build | The project is built in this stage. The .NET SDK base image is used, which has the components required to build your project. |
75+
| publish | This stage derives from the build stage and publishes your project, which will be copied to the final stage. |
76+
| final | This stage configures how to start the app and is used in production or when running from VS in regular mode (Default when not using the Debug configuration). |
77+
| aotdebug | This stage is used as the base for the final stage when launching from VS to support debugging in regular mode (Default when not using the Debug configuration). |
78+
79+
> [!NOTE]
80+
> The `aotdebug` stage is only supported for Linux containers. It is used in Visual Studio 2022 17.11 and later if [native Ahead Of Time (AOT) deployment](/dotnet/core/deploying/native-aot) is enabled on the project.
81+
82+
::: moniker range=">=vs-2022"
83+
### Customize the image for debugging
84+
85+
To support native AOT deployment, the GNU debugger (GDB) is installed, but only on the image used when debugging, not the final runtime image. The Dockerfile includes a build argument `LAUNCHING_FROM_VS` which can be `true` or `false`. If `true`, the `aotdebug` stage is used, which is where GDB is installed. Note that Visual Studio only supports native AOT and GDB for Linux containers.
86+
87+
```Dockerfile
88+
# These ARGs allow for swapping out the base used to make the final image when debugging from VS
89+
ARG LAUNCHING_FROM_VS
90+
# This sets the base image for final, but only if LAUNCHING_FROM_VS has been defined
91+
ARG FINAL_BASE_IMAGE=${LAUNCHING_FROM_VS:+aotdebug}
92+
93+
# ... (other stages omitted)
94+
95+
# This stage is used as the base for the final stage when launching from VS to support debugging in regular mode (Default when not using the Debug configuration)
96+
FROM base as aotdebug
97+
USER root
98+
# Install GDB to support native debugging
99+
RUN apt-get update \
100+
&& apt-get install -y --no-install-recommends \
101+
gdb
102+
USER app
103+
104+
# This stage is used in production or when running from VS in regular mode (Default when not using the Debug configuration)
105+
FROM ${FINAL_BASE_IMAGE:-mcr.microsoft.com/dotnet/runtime-deps:8.0} AS final
106+
WORKDIR /app
107+
EXPOSE 8080
108+
COPY --from=publish /app/publish .
109+
ENTRYPOINT ["./WebApplication1"]
110+
```
111+
112+
You can use `aotstage` in the Dockerfile to customize the image used at debug time, without affecting the final image used when not launching from Visual Studio, or in production. For example, you could install a tool for use only during debugging.
113+
114+
:::moniker-end
115+
69116
### MSBuild
70117

71118
::: moniker range=">=vs-2022"

0 commit comments

Comments
 (0)