Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit f83ebcd

Browse files
committed
README edits
1 parent 5b6371c commit f83ebcd

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

containers/dotnetcore-2.1/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ This container solves that problem by setting the environment variable `ASPNETCO
2222

2323
```json
2424
"appPort": [5000, 5001],
25-
"runArgs": [
26-
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000"
27-
]
25+
"remoteEnv": {
26+
"ASPNETCORE_Kestrel__Endpoints__Http__Url": "http://*:5000"
27+
}
2828
```
2929

3030
If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.
@@ -45,17 +45,17 @@ dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.as
4545
dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
4646
```
4747

48-
Next, add the following in the `runArgs` array in `.devcontainer/devcontainer.json` (assuming port 5000 and 5001 are the correct ports):
48+
Next, add the following in to `.devcontainer/devcontainer.json` (assuming port 5000 and 5001 are the correct ports):
4949

5050
```json
5151
"appPort": [5000, 5001],
52-
"runArgs": [
53-
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000",
54-
"-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:5001",
55-
"-v", "${env:HOME}${env:USERPROFILE}/.aspnet/https:/home/vscode/.aspnet/https",
56-
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePwdGoesHere",
57-
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/home/vscode/.aspnet/https/aspnetapp.pfx"
58-
]
52+
"mounts": [
53+
"source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind"
54+
],
55+
"remoteEnv": {
56+
"ASPNETCORE_Kestrel__Endpoints__Http__Url": "http://*:5000",
57+
"ASPNETCORE_Kestrel__Endpoints__Https__Url": "https://*:5001","ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere","ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx",
58+
}
5959
```
6060

6161
If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.

containers/dotnetcore-2.2/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ This container solves that problem by setting the environment variable `ASPNETCO
2222

2323
```json
2424
"appPort": [5000, 5001],
25-
"runArgs": [
26-
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000"
27-
]
25+
"remoteEnv": {
26+
"ASPNETCORE_Kestrel__Endpoints__Http__Url": "http://*:5000"
27+
}
2828
```
2929

3030
If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.
@@ -45,17 +45,17 @@ dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.as
4545
dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
4646
```
4747

48-
Next, add the following in the `runArgs` array in `.devcontainer/devcontainer.json` (assuming port 5000 and 5001 are the correct ports):
48+
Next, add the following in to `.devcontainer/devcontainer.json` (assuming port 5000 and 5001 are the correct ports):
4949

5050
```json
5151
"appPort": [5000, 5001],
52-
"runArgs": [
53-
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000",
54-
"-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:5001",
55-
"-v", "${env:HOME}${env:USERPROFILE}/.aspnet/https:/home/vscode/.aspnet/https",
56-
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePwdGoesHere",
57-
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/home/vscode/.aspnet/https/aspnetapp.pfx"
58-
]
52+
"mounts": [
53+
"source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind"
54+
],
55+
"remoteEnv": {
56+
"ASPNETCORE_Kestrel__Endpoints__Http__Url": "http://*:5000",
57+
"ASPNETCORE_Kestrel__Endpoints__Https__Url": "https://*:5001","ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere","ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx",
58+
}
5959
```
6060

6161
If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.

containers/dotnetcore-3.0/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ This container solves that problem by setting the environment variable `ASPNETCO
2222

2323
```json
2424
"appPort": [5000, 5001],
25-
"runArgs": [
26-
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000"
27-
]
25+
"remoteEnv": {
26+
"ASPNETCORE_Kestrel__Endpoints__Http__Url": "http://*:5000"
27+
}
2828
```
2929

3030
If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.
@@ -45,17 +45,17 @@ dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.as
4545
dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
4646
```
4747

48-
Next, add the following in the `runArgs` array in `.devcontainer/devcontainer.json` (assuming port 5000 and 5001 are the correct ports):
48+
Next, add the following in to `.devcontainer/devcontainer.json` (assuming port 5000 and 5001 are the correct ports):
4949

5050
```json
5151
"appPort": [5000, 5001],
52-
"runArgs": [
53-
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000",
54-
"-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:5001",
55-
"-v", "${env:HOME}${env:USERPROFILE}/.aspnet/https:/home/vscode/.aspnet/https",
56-
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePwdGoesHere",
57-
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/home/vscode/.aspnet/https/aspnetapp.pfx"
58-
]
52+
"mounts": [
53+
"source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind"
54+
],
55+
"remoteEnv": {
56+
"ASPNETCORE_Kestrel__Endpoints__Http__Url": "http://*:5000",
57+
"ASPNETCORE_Kestrel__Endpoints__Https__Url": "https://*:5001","ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere","ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx",
58+
}
5959
```
6060

6161
If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.

0 commit comments

Comments
 (0)