From 6fc9a6460e23837cc7de1811fac12b2c4482bb37 Mon Sep 17 00:00:00 2001 From: Tarun Jain <87998741+erjain@users.noreply.github.com> Date: Tue, 15 Feb 2022 02:09:25 +0530 Subject: [PATCH] Section to describe how to run WebSPA project via Visual Studio 2022 in debug mode. --- Windows-setup.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Windows-setup.md b/Windows-setup.md index 8bec62e..80a1f2c 100644 --- a/Windows-setup.md +++ b/Windows-setup.md @@ -272,6 +272,20 @@ It is also recommended to install the C# extension and the Docker extension for ![](images/Windows-setup/vs-code-3-extensions.png) +## Optional - To run WebSPA project via Visual Studio 2022 in debug mode: + +1. Update the Dockerfile in WebSPA project(src/Web/WebSPA/Dockerfile) to insert below instructions after WORKDIR /app + + RUN apt-get update + RUN apt-get -y install curl gnupg + RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - + RUN apt-get -y install nodejs + RUN npm install + RUN npm -v + +2. Update the value for webspa.environment in docker-compose.override.yml as follows: + ASPNETCORE_ENVIRONMENT=Development + ## Explore the code You should be now ready to begin learning by [exploring the code](Explore-the-code) and debugging eShopOnContainers.