-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Add .NET 11 installation instructions for Linux #10318
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
rbhanda
wants to merge
3
commits into
main
Choose a base branch
from
rbhanda-patch-1
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.
+43
−0
Open
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # .NET 11 installation instructions for Linux | ||
|
|
||
| The following instructions demonstrate installing .NET 11 on Linux. These instructions augment the more general [.NET install instructions](install.md), including installing with `.tar.gz` files, that work on multiple operating systems. | ||
|
|
||
| [.NET 11 Required Packages](os-packages.md) describes the set of packages required to run .NET on Linux. | ||
|
|
||
| ## Distributions | ||
|
|
||
| The following distributions are available for Linux: | ||
|
|
||
| - .NET SDK: includes tools for building and testing applications, and includes the runtime distributions that follow. | ||
| - .NET Runtime: includes the .NET runtime and libraries, enabling running console applications. | ||
| - ASP.NET Core Runtime: includes the .NET and ASP.NET Core runtimes, enabling running console, and web applications. | ||
|
|
||
| We recommend you install the .NET SDK to develop and build applications, and to install one of the runtime packages (like ASP.NET Core) to exclusively run applications. | ||
|
|
||
| ## Downloads | ||
|
|
||
| Each of the distributions can be downloaded from: | ||
|
|
||
| - [Microsoft .NET website](https://dotnet.microsoft.com/download/dotnet/11.0) | ||
| - [.NET 11 release notes](README.md) | ||
|
|
||
| ## Installing from a binary archive | ||
|
|
||
| You can install .NET with a binary archive. This option is required if you want to install .NET for a single user. It is also recommended if you want to install .NET temporarily. | ||
|
|
||
| The following workflow demonstrates downloading, unpacking, configuring, and running the .NET SDK from the command line. You may choose to do some of these tasks via the browser and functionality provided by your operating system. | ||
|
|
||
| ```bash | ||
| ~# curl -Lo dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/11.0.100-preview.2.26159.112/dotnet-sdk-11.0.100-preview.2.26159.112-linux-x64.tar.gz | ||
| ~# mkdir dotnet | ||
| ~# tar -C dotnet -xf dotnet.tar.gz | ||
| ~# rm dotnet.tar.gz | ||
| ~# export DOTNET_ROOT=~/dotnet | ||
| ~# export PATH=$PATH:~/dotnet | ||
| ~# dotnet --version | ||
| 11.0.100-preview.2.26159.112 | ||
| ``` | ||
|
|
||
| The `DOTNET_ROOT` environment variable is required to launch an application with their executables (like `myapp.exe`). The executables look for this environment variable to find the runtime if it isn't installed in its regular location. The `PATH` environment variable must be updated if you want to use `dotnet` without absolute paths to its location. Setting both of these environment variables is optional. | ||
|
|
||
| You can add your .NET install location permanently to your path if you'd like. | ||
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.