Skip to content

Repo sync for protected CLA branch #6031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions docs/devinit/sample-dotnet-core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
title: .NET Core app
description: Example repository that uses devinit to install a specific .NET Core SDK.
ms.date: 10/28/2020
ms.topic: reference
author: andysterland
ms.author: andster
manager: jillfra
ms.workload:
- multiple
monikerRange: ">= vs-2019"
ms.prod: visual-studio-windows
ms.technology: devinit
---

# .NET Core app

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.

## .devinit.json

```json
{
"$schema": "https://json.schemastore.org/devinit.schema-2.0",
"run": [
{
"comments": "Installs the .NET Core SDK specified in the global.json file.",
"tool": "require-dotnetcoresdk"
}
]
}
```

## .devcontainer.json

Contents of the _.devcontainer.json_ file in the repo root.

```json
{
"postCreateCommand": "devinit init"
}
```

## global.json

Contents of the _global.json_ file in the repo root.

```json
{
"sdk": {
"version": "3.1.302"
}
}
```
13 changes: 7 additions & 6 deletions docs/devinit/sample-readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Sample List
description: List of example repo customizations using devinit.
ms.date: 08/28/2020
ms.date: 10/28/2020
ms.topic: reference
author: andysterland
ms.author: andster
Expand All @@ -16,10 +16,11 @@ ms.technology: devinit

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

| Tool | Description | |
|--------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|---|
| Tool | Description | |
|---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|---|
| [**All tools**](sample-all-tool.md) | Example of using all the tools. | |
| [**eShopOnWeb**](sample-eshoponweb.md) | Example of customizing the [dotnet-architecture/eshoponweb](https://github.com/dotnet-architecture/eShopOnWeb) app. | |
| [**Private Preview**](sample-private-preview.md) | Example of the customizations used in the GitHub Codespaces Visual Studio private beta. | |
| [**Open CV**](sample-opencv.md) | Example of the customizations required by the OpenCV project. | |
| [**eShopOnWeb**](sample-eshoponweb.md) | Example of customizing the [dotnet-architecture/eshoponweb](https://github.com/dotnet-architecture/eShopOnWeb) app. | |
| [**Private Preview**](sample-private-preview.md) | Example of the customizations used in the GitHub Codespaces Visual Studio private beta. | |
| [**Open CV**](sample-opencv.md) | Example of the customizations required by the OpenCV project. | |
| [**.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. | |
| [**.NET Core App**](sample-dotnet-core.md) | Example of a repository that uses devinit to install the required .NET Core SDK. | |
2 changes: 2 additions & 0 deletions docs/devinit/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@
href: sample-opencv.md
- name: Codespaces private preview
href: sample-private-preview.md
- name: .NET Core App
href: sample-dotnet-core.md