* Remove SQL Server part of the CodeSpace - we have SQLite to use * Update to use .NET 6 and simplified docker stuff https://github.com/microsoft/vscode-dev-containers/ * Need to set the SQLite Connection string env variable * Path to SLN has changed to the root of the repo * Fix up launch and VSCode tasks
44 lines
1.8 KiB
JSON
44 lines
1.8 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/main/containers/dotnet
|
|
{
|
|
"name": "C# (.NET) Umbraco & SMTP4Dev",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "app",
|
|
"workspaceFolder": "/workspace",
|
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
"omnisharp.defaultLaunchSolution": "umbraco.sln",
|
|
"omnisharp.enableDecompilationSupport": true,
|
|
"omnisharp.enableRoslynAnalyzers": true
|
|
},
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"ms-dotnettools.csharp"
|
|
],
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
"forwardPorts": [9000, 5000, 25]
|
|
|
|
// [Optional] To reuse of your local HTTPS dev cert:
|
|
//
|
|
// 1. Export it locally using this command:
|
|
// * Windows PowerShell:
|
|
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
|
|
// * macOS/Linux terminal:
|
|
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
|
|
//
|
|
// 2. Uncomment these 'remoteEnv' lines:
|
|
// "remoteEnv": {
|
|
// "ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere",
|
|
// "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx",
|
|
// },
|
|
//
|
|
// 3. Next, copy your certificate into the container:
|
|
// 1. Start the container
|
|
// 2. Drag ~/.aspnet/https/aspnetapp.pfx into the root of the file explorer
|
|
// 3. Open a terminal in VS Code and run "mkdir -p /home/vscode/.aspnet/https && mv aspnetapp.pfx /home/vscode/.aspnet/https"
|
|
|
|
}
|