-
Notifications
You must be signed in to change notification settings - Fork 0
Dotnet Feature #37
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
Open
mailaenderli
wants to merge
6
commits into
main
Choose a base branch
from
feature/dotnet
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dotnet Feature #37
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2c473c0
feat(dotnet): add dotnet feature
mailaenderli fcd40e0
chore: fix tests for arm
mailaenderli c858b33
feat(dotnet): update default .NET SDK version to 10.0 and adjust prop…
mailaenderli 08a9a12
chore: cleanup
mailaenderli c8a6f5c
ci: add dotnet to ci
mailaenderli 4fd8a48
chore: mr feedback
mailaenderli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| ## Dotnet Tools | ||
|
|
||
| If you need additional tools for example like the Powerapps CLI you can install them using `dotnet tool install --create-manifest-if-needed <Tool>`. | ||
| This installs the tool creates a manifest file: `.config/dotnet-tools.json`. | ||
|
|
||
| ```json | ||
| { | ||
| "version": 1, | ||
| "isRoot": true, | ||
| "tools": { | ||
| "microsoft.powerapps.cli.tool": { | ||
| "version": "1.43.6", | ||
| "commands": [ | ||
| "pac" | ||
| ], | ||
| "rollForward": false | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| After this step, the tool can be invoked using `dotnet <command>`. | ||
|
|
||
| If you already have a manifest, all tools can be installed using `dotnet tool restore`. | ||
|
|
||
| To do that automatically, include the command in your `devcontainer.json` like this: | ||
| ```json | ||
| "postCreateCommand": "dotnet tool restore" | ||
| ``` | ||
|
|
||
| ### System Compatibility | ||
|
|
||
| Debian, Ubuntu, Alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # .NET (dotnet) | ||
|
|
||
| A package which installs .NET SDKs, runtimes and workloads. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```json | ||
| "features": { | ||
| "ghcr.io/postfinance/devcontainer-features/dotnet:0.1.0": { | ||
| "version": "10.0", | ||
| "additionalVersions": "", | ||
| "dotnetRuntimeVersions": "", | ||
| "aspNetCoreRuntimeVersions": "", | ||
| "workloads": "", | ||
| "downloadUrl": "", | ||
| "versionsUrl": "", | ||
| "nugetConfigPath": "" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Options | ||
|
|
||
| | Option | Description | Type | Default Value | Proposals | | ||
| |-----|-----|-----|-----|-----| | ||
| | version | Select or enter a .NET SDK version. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version. | string | 10.0 | lts, none, 8.0, 9.0, 10.0, 8.0.408 | | ||
| | additionalVersions | Enter additional .NET SDK versions, separated by commas. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version. | string | <empty> | 8.0,9.0, 8.0.408 | | ||
| | dotnetRuntimeVersions | Enter additional .NET runtime versions, separated by commas. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version. | string | <empty> | 8.0.15, 9.0, lts, 8.0 | | ||
| | aspNetCoreRuntimeVersions | Enter additional ASP.NET Core runtime versions, separated by commas. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version. | string | <empty> | 8.0.15, lts, 8.0 | | ||
| | workloads | Enter additional .NET SDK workloads, separated by commas. Use 'dotnet workload search' to learn what workloads are available to install. | string | <empty> | wasm-tools, android, macos | | ||
| | downloadUrl | The download URL to use for Dotnet binaries. | string | <empty> | | | ||
| | versionsUrl | The URL to use for fetching available Dotnet versions. | string | <empty> | | | ||
| | nugetConfigPath | Path to a NuGet.Config file to copy into the container. This can be used to configure private package sources for the dotnet CLI. | string | <empty> | | | ||
|
|
||
| ## Customizations | ||
|
|
||
| ### VS Code Extensions | ||
|
|
||
| - `ms-dotnettools.csharp` | ||
|
|
||
| ## Dotnet Tools | ||
|
|
||
| If you need additional tools for example like the Powerapps CLI you can install them using `dotnet tool install --create-manifest-if-needed <Tool>`. | ||
| This installs the tool creates a manifest file: `.config/dotnet-tools.json`. | ||
|
|
||
| ```json | ||
| { | ||
| "version": 1, | ||
| "isRoot": true, | ||
| "tools": { | ||
| "microsoft.powerapps.cli.tool": { | ||
| "version": "1.43.6", | ||
| "commands": [ | ||
| "pac" | ||
| ], | ||
| "rollForward": false | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| After this step, the tool can be invoked using `dotnet <command>`. | ||
|
|
||
| If you already have a manifest, all tools can be installed using `dotnet tool restore`. | ||
|
|
||
| To do that automatically, include the command in your `devcontainer.json` like this: | ||
| ```json | ||
| "postCreateCommand": "dotnet tool restore" | ||
| ``` | ||
|
|
||
| ### System Compatibility | ||
|
|
||
| Debian, Ubuntu, Alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| { | ||
| "id": "dotnet", | ||
| "version": "0.1.0", | ||
| "name": ".NET", | ||
| "description": "A package which installs .NET SDKs, runtimes and workloads.", | ||
| "options": { | ||
| "version": { | ||
| "type": "string", | ||
| "proposals": [ | ||
| "lts", | ||
| "none", | ||
| "8.0", | ||
| "9.0", | ||
| "10.0", | ||
| "8.0.408" | ||
| ], | ||
| "default": "10.0", | ||
| "description": "Select or enter a .NET SDK version. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version." | ||
| }, | ||
| "additionalVersions": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "Enter additional .NET SDK versions, separated by commas. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version.", | ||
| "proposals": [ | ||
| "8.0,9.0", | ||
| "8.0.408" | ||
| ] | ||
| }, | ||
| "dotnetRuntimeVersions": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "Enter additional .NET runtime versions, separated by commas. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version.", | ||
| "proposals": [ | ||
| "8.0.15", | ||
| "9.0", | ||
| "lts, 8.0" | ||
| ] | ||
| }, | ||
| "aspNetCoreRuntimeVersions": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "Enter additional ASP.NET Core runtime versions, separated by commas. Use 'lts' for the latest LTS version, 'X.Y' or 'X.Y.Z' for a specific version.", | ||
| "proposals": [ | ||
| "8.0.15", | ||
| "lts, 8.0" | ||
| ] | ||
| }, | ||
| "workloads": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "Enter additional .NET SDK workloads, separated by commas. Use 'dotnet workload search' to learn what workloads are available to install.", | ||
| "proposals": [ | ||
| "wasm-tools", | ||
| "android, macos" | ||
| ] | ||
| }, | ||
| "downloadUrl": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "The download URL to use for Dotnet binaries." | ||
| }, | ||
| "versionsUrl": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "The URL to use for fetching available Dotnet versions." | ||
| }, | ||
| "nugetConfigPath": { | ||
| "type": "string", | ||
| "default": "", | ||
| "description": "Path to a NuGet.Config file to copy into the container. This can be used to configure private package sources for the dotnet CLI." | ||
| } | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "ms-dotnettools.csharp" | ||
| ] | ||
| } | ||
| }, | ||
| "containerEnv": { | ||
| "DOTNET_ROOT": "/usr/share/dotnet", | ||
| "PATH": "$PATH:$DOTNET_ROOT:~/.dotnet/tools", | ||
| "DOTNET_RUNNING_IN_CONTAINER": "true", | ||
| "DOTNET_USE_POLLING_FILE_WATCHER": "true", | ||
| "DOTNET_CLI_TELEMETRY_OPTOUT": "1" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| . ./functions.sh | ||
|
|
||
| "./installer_$(detect_arch)" \ | ||
| -version="${VERSION:-"latest"}" \ | ||
| -additionalVersions="${ADDITIONALVERSIONS:-""}" \ | ||
| -dotnetRuntimeVersions="${DOTNETRUNTIMEVERSIONS:-""}" \ | ||
| -aspNetCoreRuntimeVersions="${ASPNETCORERUNTIMEVERSIONS:-""}" \ | ||
| -workloads="${WORKLOADS:-""}" \ | ||
| -downloadUrl="${DOWNLOADURL:-""}" \ | ||
| -versionsUrl="${VERSIONSURL:-""}" \ | ||
| -nugetConfigPath="${NUGETCONFIGPATH:-""}" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.