Skip to content

Commit

Permalink
migrations: use .net 7 latest version (#5)
Browse files Browse the repository at this point in the history
this changeset is to upgrade the devcontainer to .net 7 latest version from .net 6.

- use .net 7 bullseye image
- use a global.json to ensure the minimal required sdk when not running from devcontainer
- update docs with more links to find .net versions and download links

BREAKING CHANGE: this version of devcontainer uses the latest bullseye version of .net 7
  • Loading branch information
kosalaperera authored Apr 14, 2023
1 parent eef1be6 commit 02eefae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// See complete list https://hub.docker.com/_/microsoft-dotnet-sdk/
// Or https://mcr.microsoft.com/v2/dotnet/sdk/tags/list
"image": "mcr.microsoft.com/dotnet/sdk:6.0",
"image": "mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim",

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

This template repo serves as a flavor of ready-to-go .NET and Azure development container.

> Originally, this dev container was created to tryout [.NET preview versions][dotnet-download-latest] without having to install them locally.
> Originally, this dev container was created to tryout [.NET preview versions][dotnet-versions] without having to install them locally.
[dotnet-quick-start]: https://learn.microsoft.com/en-us/dotnet/standard/get-started
[dotnet-download-latest]: https://dotnet.microsoft.com/en-us/download/dotnet
[dotnet-versions]: https://versionsof.net/core/

### What's included:

Technically, this includes nothing but:

- .NET 6.0 LTS SDK and Azure CLI with Bicep
- [.NET 7 Latest SDK][dotnet-versions-download] and Azure CLI with Bicep
- Docker and Kubernetes with Helm Charts, and
- Configured to build and run from VS Code


[dotnet-versions-download]: https://dotnet.microsoft.com/en-us/download/dotnet

## Requirements

Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "7.0.203",
"allowPrerelease": false,
"rollForward": "latestMinor"
}
}

0 comments on commit 02eefae

Please sign in to comment.