Skip to content

Commit 7915ced

Browse files
authored
Merge pull request #7368 from aurichar/master
Add DevinitExample repo to docs
2 parents ae9145b + 555faf5 commit 7915ced

File tree

3 files changed

+63
-6
lines changed

3 files changed

+63
-6
lines changed

docs/devinit/sample-dotnet-core.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: .NET Core app
3+
description: Example repository that uses devinit to install a specific .NET Core SDK.
4+
ms.date: 10/28/2020
5+
ms.topic: reference
6+
author: andysterland
7+
ms.author: andster
8+
manager: jillfra
9+
ms.workload:
10+
- multiple
11+
monikerRange: ">= vs-2019"
12+
ms.prod: visual-studio-windows
13+
ms.technology: devinit
14+
---
15+
16+
# .NET Core app
17+
18+
See the [DevinitExample](https://github.com/microsoft/DevinitExample) repository for a full example of using devinit to install the required .NET Core SDK version in Codespaces.
19+
20+
## .devinit.json
21+
22+
```json
23+
{
24+
"$schema": "https://json.schemastore.org/devinit.schema-2.0",
25+
"run": [
26+
{
27+
"comments": "Installs the .NET Core SDK specified in the global.json file.",
28+
"tool": "require-dotnetcoresdk"
29+
}
30+
]
31+
}
32+
```
33+
34+
## .devcontainer.json
35+
36+
Contents of the _.devcontainer.json_ file in the repo root.
37+
38+
```json
39+
{
40+
"postCreateCommand": "devinit init"
41+
}
42+
```
43+
44+
## global.json
45+
46+
Contents of the _global.json_ file in the repo root.
47+
48+
```json
49+
{
50+
"sdk": {
51+
"version": "3.1.302"
52+
}
53+
}
54+
```

docs/devinit/sample-readme.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Sample List
33
description: List of example repo customizations using devinit.
4-
ms.date: 08/28/2020
4+
ms.date: 10/28/2020
55
ms.topic: reference
66
author: andysterland
77
ms.author: andster
@@ -16,10 +16,11 @@ ms.technology: devinit
1616

1717
The table below contains a list of all the currently available examples for using devinit in GitHub Codespaces.
1818

19-
| Tool | Description | |
20-
|--------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|---|
19+
| Tool | Description | |
20+
|---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|---|
2121
| [**All tools**](sample-all-tool.md) | Example of using all the tools. | |
22-
| [**eShopOnWeb**](sample-eshoponweb.md) | Example of customizing the [dotnet-architecture/eshoponweb](https://github.com/dotnet-architecture/eShopOnWeb) app. | |
23-
| [**Private Preview**](sample-private-preview.md) | Example of the customizations used in the GitHub Codespaces Visual Studio private beta. | |
24-
| [**Open CV**](sample-opencv.md) | Example of the customizations required by the OpenCV project. | |
22+
| [**eShopOnWeb**](sample-eshoponweb.md) | Example of customizing the [dotnet-architecture/eshoponweb](https://github.com/dotnet-architecture/eShopOnWeb) app. | |
23+
| [**Private Preview**](sample-private-preview.md) | Example of the customizations used in the GitHub Codespaces Visual Studio private beta. | |
24+
| [**Open CV**](sample-opencv.md) | Example of the customizations required by the OpenCV project. | |
2525
| [**.NET Core Runtime**](sample-dotnet-runtime.md) | Example of the customizations required by the .NET Core Runtime [dotnet/runtime](https://github.com/dotnet/runtime) project. | |
26+
| [**.NET Core App**](sample-dotnet-core.md) | Example of a repository that uses devinit to install the required .NET Core SDK. | |

docs/devinit/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@
8181
href: sample-opencv.md
8282
- name: Codespaces private preview
8383
href: sample-private-preview.md
84+
- name: .NET Core App
85+
href: sample-dotnet-core.md

0 commit comments

Comments
 (0)