From 3c709cfa2470efcfff872ee5bafae34bf8360178 Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Mon, 14 Nov 2022 14:10:52 +0000 Subject: [PATCH] Adds dotnet build command for onCreateCommand to use in Prebuilds of CodeSpaces --- .devcontainer/devcontainer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e5aaa046fc..a8d73e9304 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -32,8 +32,11 @@ "ms-dotnettools.csharp" ], - // Use 'forwardPorts' to make a list of ports inside the container available locally. - "forwardPorts": [9000, 5000, 25] + // Use 'forwardPorts' to make a list of ports inside the container available locallAdd "forwardPorts": [9000, 5000, 25], + + // Use OnCreateCommand to run commands after the container is created + // This is used in the prebuilds - so dotnet build (nuget restore and node stuff) is done + "onCreateCommand": "dotnet build umbraco.sln", // [Optional] To reuse of your local HTTPS dev cert: //