Skip to content

Commit 82c294f

Browse files
committed
Add playground launch profile
1 parent fb7aa7d commit 82c294f

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

‎.devcontainer/unitsnet-modular/devcontainer.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
],
1010
"settings": {
1111
"dotnet.defaultSolution": "UnitsNet.Modular/Samples/UnitsNet.Modular.Playground/UnitsNet.Modular.Playground.csproj",
12+
"csharp.debug.console": "integratedTerminal",
1213
"terminal.integrated.cwd": "${workspaceFolder}/UnitsNet.Modular/Samples/UnitsNet.Modular.Playground"
1314
}
1415
},
@@ -18,6 +19,7 @@
1819
"UnitsNet.Modular/Samples/UnitsNet.Modular.Playground/ApplicationUnits.cs",
1920
"UnitsNet.Modular/Samples/UnitsNet.Modular.Playground/GameScore.unitsnet.json",
2021
"UnitsNet.Modular/Samples/UnitsNet.Modular.Playground/Program.cs",
22+
"UnitsNet.Modular/Samples/UnitsNet.Modular.Playground/Properties/launchSettings.json",
2123
"UnitsNet.Modular/Samples/UnitsNet.Modular.Playground/UnitsNet.Modular.Playground.csproj"
2224
]
2325
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"UnitsNet.Modular playground": {
5+
"commandName": "Project"
6+
}
7+
}
8+
}

‎UnitsNet.Modular/Samples/UnitsNet.Modular.Playground/README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ This small console app runs the real UnitsNet.Modular source generator from the
44
checkout. The generated quantity structs and unit enums become part of this app at build time; no
55
generated C# is checked in.
66

7-
## Run it
7+
## Run it from VS Code
88

9-
The Codespace builds the project once while it is being created. Open a terminal and run:
9+
The Codespace builds the project once while it is being created. Open `Program.cs`, then press `F5`
10+
to debug or `Ctrl+F5` to run without the debugger. If VS Code asks for a profile, choose
11+
**UnitsNet.Modular playground**. Output appears in the integrated terminal.
12+
13+
You can also open a terminal and run:
1014

1115
```shell
1216
dotnet run

0 commit comments

Comments
 (0)