diff options
author | Steven <steven.liekens@gmail.com> | 2023-09-11 21:16:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 21:16:24 +0300 |
commit | 96c1eea40fc97b471ba0b33fcc79273c7ce586c7 (patch) | |
tree | 1ac35df447d38c00cb35e07a7b876dc985fc1329 /src/dotnet/devcontainer-feature.json | |
parent | 038bed3d58a84885da8a008b80905da17d57a543 (diff) |
Use dotnet-install.sh in .NET feature (#628)feature_dotnet_2.0.0
* Use dotnet-install.sh in .NET feature
* Use latest.version files
* Cleanup runtime args
* Use latest.version files in tests as well
* Improve tests, remove code duplication
* Add stderr helper
* Validate version inputs
* Use suggested description
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
* Shorter version description
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
* Shorter version description
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
* Clean up apt lists
* Verify 7.0 is latest
* Fix PATH, add test for .NET global tools
* Include a copy of dotnet-install.sh in the Feature
* Configure useful env variables
* Use stringly typed booleans
* Keep imperative writing style in option hints
* Update maintainers
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
* Move dotnet-install.sh into a vendor directory
* Refactor variables
* Amend
* Amend 2
* Use default options from devcontainer-feature.json
* Add back variables
* Fix shellchek warning in fetch_latest_sdk_version
* Inline install_version function
* Fix ShellCheck warnings
* Improve CSV parsing
* Default to latest when configuring an empty version
* Add support for runtime-only configurations
* Move 'none' check higher up
* Deduplicate helper functions, sort into files
* Address the user more directly in NOTES
* Remove unnecessary defaults
* Replace feature -> Feature
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
* Add update-dotnet-install-script workflow
* Apply suggestions from code review
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
* Don't skip ci for automated script update
---------
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
Diffstat (limited to 'src/dotnet/devcontainer-feature.json')
-rw-r--r-- | src/dotnet/devcontainer-feature.json | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/src/dotnet/devcontainer-feature.json b/src/dotnet/devcontainer-feature.json index 4f484cc..f00e0d3 100644 --- a/src/dotnet/devcontainer-feature.json +++ b/src/dotnet/devcontainer-feature.json @@ -1,35 +1,44 @@ { "id": "dotnet", - "version": "1.1.4", + "version": "2.0.0", "name": "Dotnet CLI", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/dotnet", - "description": "Installs the .NET CLI. Provides option of installing sdk or runtime, and option of versions to install. Uses latest version of .NET sdk as defaults to install.", + "description": "This Feature installs the latest .NET SDK, which includes the .NET CLI and the shared runtime. Options are provided to choose a different version or additional versions.", "options": { "version": { "type": "string", "proposals": [ "latest", - "7", - "6", - "3.1" + "lts", + "none", + "8.0", + "7.0", + "6.0" ], "default": "latest", - "description": "Select or enter a dotnet CLI version. (Available versions may vary by Linux distribution.)" + "description": "Select or enter a .NET SDK version. Use 'latest' for the latest version, 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version." }, - "runtimeOnly": { - "type": "boolean", - "default": false, - "description": "Install just the dotnet runtime if true, and sdk if false." + "additionalVersions": { + "type": "string", + "default": "", + "description": "Enter additional .NET SDK versions, separated by commas. Use 'latest' for the latest version, 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version." + }, + "dotnetRuntimeVersions": { + "type": "string", + "default": "", + "description": "Enter additional .NET runtime versions, separated by commas. Use 'latest' for the latest version, 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version." }, - "installUsingApt": { - "type": "boolean", - "default": true, - "description": "If true, it installs using apt instead of the release URL" + "aspNetCoreRuntimeVersions": { + "type": "string", + "default": "", + "description": "Enter additional ASP.NET Core runtime versions, separated by commas. Use 'latest' for the latest version, 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version." } }, "containerEnv": { - "DOTNET_ROOT": "/usr/local/dotnet/current", - "PATH": "/usr/local/dotnet/current:${PATH}" + "DOTNET_ROOT": "/usr/share/dotnet", + "PATH": "$PATH:$DOTNET_ROOT:~/.dotnet/tools", + "DOTNET_RUNNING_IN_CONTAINER": "true", + "DOTNET_USE_POLLING_FILE_WATCHER": "true" }, "customizations": { "vscode": { |