diff --git a/.openpublishing.publish.config.json b/.openpublishing.publish.config.json index 2c7a5e685bdbe..b751080f0b3ae 100644 --- a/.openpublishing.publish.config.json +++ b/.openpublishing.publish.config.json @@ -30,6 +30,7 @@ "filemap_share_depots": ["VS.dotnet-api-docs"], "open_to_public_contributors": true, "type_mapping": { + "ZonePivotGroups": "Toc", "Conceptual": "Content", "ManagedReference": "Content", "RestApi": "Content", diff --git a/.openpublishing.redirection.json b/.openpublishing.redirection.json index 419d45dc4218e..a804d49253f4d 100644 --- a/.openpublishing.redirection.json +++ b/.openpublishing.redirection.json @@ -139,6 +139,19 @@ "redirect_url": "/dotnet/desktop-wpf/migration/convert-project-from-net-framework", "redirect_document_id": true }, + { + "source_path": "docs/core/linux-prerequisites.md", + "redirect_url": "/dotnet/core/setup/dependencies" + }, + { + "source_path": "docs/core/macos-prerequisites.md", + "redirect_url": "/dotnet/core/setup/dependencies" + }, + { + "source_path": "docs/core/windows-prerequisites.md", + "redirect_url": "/dotnet/core/setup/dependencies", + "redirect_document_id": true + }, { "source_path": "docs/core/preview3/deploying/index.md", "redirect_url": "/dotnet/core/deploying", @@ -305,7 +318,7 @@ }, { "source_path": "docs/core/preview3/windows-prerequisites.md", - "redirect_url": "/dotnet/core/windows-prerequisites" + "redirect_url": "/dotnet/core/setup/index" }, { "source_path": "docs/core/testing/using-mstest-on-windows.md", diff --git a/docs/breadcrumb/toc.yml b/docs/breadcrumb/toc.yml index e4b1b762c4599..f710208745dc7 100644 --- a/docs/breadcrumb/toc.yml +++ b/docs/breadcrumb/toc.yml @@ -124,6 +124,13 @@ - name: Tools tocHref: /dotnet/core/tools/ topicHref: /dotnet/core/tools/index + - name: Installation guide + tocHref: /dotnet/core/install/ + topicHref: /dotnet/core/install/index + items: + - name: Linux package managers + tocHref: /dotnet/core/install/ + topicHref: /dotnet/core/install/index - name: .NET Framework tocHref: /dotnet/framework/ topicHref: /dotnet/framework/index diff --git a/docs/core/deploying/deploy-with-vs.md b/docs/core/deploying/deploy-with-vs.md index fc2ec57e478fe..78fe816c67d1b 100644 --- a/docs/core/deploying/deploy-with-vs.md +++ b/docs/core/deploying/deploy-with-vs.md @@ -18,7 +18,7 @@ The following sections show how to use Microsoft Visual Studio to create the fol - Self-contained deployment - Self-contained deployment with third-party dependencies -For information on using Visual Studio to develop .NET Core applications, see [Prerequisites for .NET Core on Windows](../windows-prerequisites.md#prerequisites-to-develop-net-core-apps-with-visual-studio). +For information on using Visual Studio to develop .NET Core applications, see [.NET Core dependencies and requirements](../install/dependencies.md?tabs=netcore30&pivots=os-windows). ## Framework-dependent deployment diff --git a/docs/core/get-started.md b/docs/core/get-started.md index 4f4e35b2a426c..300942e5bdfc1 100644 --- a/docs/core/get-started.md +++ b/docs/core/get-started.md @@ -47,7 +47,7 @@ You can get started developing .NET Core applications by following these step-by - Watch a video on [how to install and use Visual Studio 2017 and .NET Core](https://channel9.msdn.com/Blogs/dotnet/Get-Started-NET-Core-Visual-Studio-2017/). - [Getting started with .NET Core using the command-line.](tutorials/using-with-xplat-cli.md) -See the [Prerequisites for Windows development](windows-prerequisites.md) article for a list of the supported Windows versions. +See the [.NET Core dependencies and requirements](install/dependencies.md?tabs=netcore30&pivots=os-windows) article for a list of the supported Windows versions. # [Linux](#tab/linux) @@ -56,7 +56,7 @@ You can get started developing .NET Core application by following these step-by- - [Getting started with .NET Core using the command-line.](tutorials/using-with-xplat-cli.md) - Watch a video on [getting started with Visual Studio Code using C# and .NET Core on Ubuntu](https://channel9.msdn.com/Blogs/dotnet/Get-started-with-VS-Code-Csharp-dotnet-Core-Ubuntu). -See the [Prerequisites for Linux development](linux-prerequisites.md) article for a list of the supported Linux distros and versions. +See the [.NET Core dependencies and requirements](install/dependencies.md?tabs=netcore30&pivots=os-linux) article for a list of the supported Linux distros and versions. # [macOS](#tab/macos) @@ -68,6 +68,6 @@ You can get started developing .NET Core application by following these step-by- - [Getting started with .NET Core on macOS using Visual Studio for Mac.](tutorials/using-on-mac-vs.md) - [Build a complete .NET Core solution on macOS using Visual Studio for Mac.](tutorials/using-on-mac-vs-full-solution.md) -See the [Prerequisites for macOS development](macos-prerequisites.md) article for a list of the supported OS X / macOS versions. +See the [.NET Core dependencies and requirements](install/dependencies.md?tabs=netcore30&pivots=os-macos) article for a list of the supported OS X / macOS versions. --- diff --git a/docs/core/install/dependencies.md b/docs/core/install/dependencies.md new file mode 100644 index 0000000000000..ad7008c4c239c --- /dev/null +++ b/docs/core/install/dependencies.md @@ -0,0 +1,267 @@ +--- +title: .NET Core SDK and runtime dependencies - .NET Core +description: Details the operating system and CPU architecture prerequisites to install the .NET Core SDK and runtime on Windows, Linux, and macOS. +author: leecow +ms.author: leecow +ms.date: 11/06/2019 +zone_pivot_groups: operating-systems-set-one +--- + +# .NET Core dependencies and requirements + +This article details which operating systems and CPU architecture are supported by .NET Core. + +## Supported operating systems + +::: zone pivot="os-windows" + + + + +# [.NET Core 3.0](#tab/netcore30) + +The following Windows versions are supported with .NET Core 3.0: + +> [!NOTE] +> A `+` symbol represents the minimum version. + +| OS | Version | Architectures | +| ----------------------------- | ------------------------------ | --------------- | +| Windows Client | 7 SP1+, 8.1 | x64, x86 | +| Windows 10 Client | Version 1607+ | x64, x86 | +| Windows Server | 2012 R2+ | x64, x86 | +| Nano Server | Version 1803+ | x64, ARM32 | + +For more information about .NET Core 3.0 supported operating systems, distributions, and lifecycle policy, see [.NET Core 3.0 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md). + +# [.NET Core 2.2](#tab/netcore22) + +The following Windows versions are supported with .NET Core 2.2: + +> [!NOTE] +> A `+` symbol represents the minimum version. + +| OS | Version | Architectures | +| ----------------------------- | ------------------------------ | --------------- | +| Windows Client | 7 SP1+, 8.1 | x64, x86 | +| Windows 10 Client | Version 1607+ | x64, x86 | +| Windows Server | 2008 R2 SP1+ | x64, x86 | +| Nano Server | Version 1803+ | x64, ARM32 | + +For more information about .NET Core 2.2 supported operating systems, distributions, and lifecycle policy, see [.NET Core 2.2 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-supported-os.md). + +# [.NET Core 2.1](#tab/netcore21) + +The following Windows versions are supported with .NET Core 2.1: + +> [!NOTE] +> A `+` symbol represents the minimum version. + +| OS | Version | Architectures | +| ----------------------------- | ------------------------------ | --------------- | +| Windows Client | 7 SP1+, 8.1 | x64, x86 | +| Windows 10 Client | Version 1607+ | x64, x86 | +| Windows Server | 2008 R2 SP1+ | x64, x86 | +| Nano Server | Version 1803+ | x64, | + +For more information about .NET Core 2.1 supported operating systems, distributions, and lifecycle policy, see [.NET Core 2.1 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md). + +--- + + + +### Windows 7 / Vista / 8.1 / Server 2008 R2 + +Additional dependencies are required if you're installing the .NET SDK or runtime on the following Windows versions: + +- Windows 7 SP1 +- Windows Vista SP 2 +- Windows 8.1 +- Windows Server 2008 R2 +- Windows Server 2012 R2 + +Install the following: + +- [Microsoft Visual C++ 2015 Redistributable Update 3](https://www.microsoft.com/download/details.aspx?id=52685). +- [KB2533623](https://support.microsoft.com/help/2533623/microsoft-security-advisory-insecure-library-loading-could-allow-remot) + +The requirements above are also required if you come across one of the following errors: + +> The program can't start because *api-ms-win-crt-runtime-l1-1-0.dll* is missing from your computer. Try reinstalling the program to fix this problem. +> +> \- or - +> +> The library *hostfxr.dll* was found, but loading it from *C:\\\\\hostfxr.dll* failed. + +::: zone-end + +::: zone pivot="os-linux" + +# [.NET Core 3.0](#tab/netcore30) + +.NET Core 3.0 treats Linux as a single operating system. There's a single Linux build (per chip architecture) for supported Linux distributions. + +.NET Core 3.0 is supported on the following Linux distributions/versions: + +> [!NOTE] +> A `+` symbol represents the minimum version. + +| OS | Version | Architectures | +| ------------------------------ | --------------------- | ---------------- | +| Red Hat Enterprise Linux | 6, 7, 8 | x64 | +| CentOS | 7+ | x64 | +| Oracle Linux | 7+ | x64 | +| Fedora | 29+ | x64 | +| Debian | 9+ | x64, ARM32, ARM64 | +| Ubuntu | 16.04+ | x64, ARM32, ARM64 | +| Linux Mint | 18+ | x64 | +| openSUSE | 15+ | x64 | +| SUSE Enterprise Linux (SLES) | 12 SP2+ | x64 | +| Alpine Linux | 3.8+ | x64, ARM64 | + +For more information about .NET Core 3.0 supported operating systems, distributions, and lifecycle policy, see [.NET Core 3.0 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md). + +For more information about how to install .NET Core 3.0 on ARM64, see [Installing .NET Core 3.0 on Linux ARM64](https://gist.github.com/richlander/467813274cea8abc624553ee72b28213). + +# [.NET Core 2.2](#tab/netcore22) + +.NET Core 2.2 treats Linux as a single operating system. There's a single Linux build (per chip architecture) for supported Linux distributions. + +.NET Core 2.2 is supported on the following Linux distributions/versions: + +> [!NOTE] +> A `+` symbol represents the minimum version. + +| OS | Version | Architectures | +| ------------------------------ | ----------------------- | ---------------- | +| Red Hat Enterprise Linux | 6, 7 | x64 | +| CentOS | 7 | x64 | +| Oracle Linux | 7 | x64 | +| Fedora | 29, 30 | x64 | +| Debian | 9 | x64, ARM32 | +| Ubuntu | 16.04, 18.04, 18.10, 19.04 | x64, ARM32 | +| Linux Mint | 17, 18 | x64 | +| openSUSE | 15+ | x64 | +| SUSE Enterprise Linux (SLES) | 12 SP2+ | x64 | +| Alpine Linux | 3.8+ | x64 | + +For more information about .NET Core 2.2 supported operating systems, distributions, and lifecycle policy, see [.NET Core 2.2 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-supported-os.md). + +# [.NET Core 2.1](#tab/netcore21) + +.NET Core 2.1 treats Linux as a single operating system. There's a single Linux build (per chip architecture) for supported Linux distributions. + +.NET Core 2.1 is supported on the following Linux distributions/versions: + +> [!NOTE] +> A `+` symbol represents the minimum version. + +| OS | Version | Architectures | +| ------------------------------ | ----------------------- | ---------------- | +| Red Hat Enterprise Linux | 6, 7, 8 | x64 | +| CentOS | 7+ | x64 | +| Oracle Linux | 7+ | x64 | +| Fedora | 29+ | x64 | +| Debian | 9 | x64, ARM32 | +| Ubuntu | 16.04, 18.04, 19.04, 19.10 | x64, ARM32 | +| Linux Mint | 17+ | x64 | +| openSUSE | 15+ | x64 | +| SUSE Enterprise Linux (SLES) | 12 SP2+ | x64 | +| Alpine Linux | 3.8+ | x64 | + +For more information about .NET Core 2.1 supported operating systems, distributions, and lifecycle policy, see [.NET Core 2.1 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md). + +--- + +## Linux distribution dependencies + +Based on your linux distribution, you may need to install additional dependencies. + +> [!IMPORTANT] +> The exact versions and names may vary slightly on your Linux distribution of choice. + +### Ubuntu + +Ubuntu distributions require the following libraries to be installed: + +- liblttng-ust0 +- libcurl3 (for 14.x and 16.x) +- libcurl4 (for 18.x) +- libssl1.0.0 +- libkrb5-3 +- zlib1g +- libicu52 (for 14.x) +- libicu55 (for 16.x) +- libicu57 (for 17.x) +- libicu60 (for 18.x) + +For .NET Core apps that use the *System.Drawing.Common* assembly, you also need the following dependency: + +- libgdiplus (version 6.0.1 or later) + +> [!WARNING] +> Most versions of Ubuntu include an earlier version of libgdiplus. You can install a recent version +> of libgdiplus by adding the Mono repository to your system. For more information, +> see . + +### CentOS and Fedora + +CentOS distributions require the following libraries installed: + +- lttng-ust +- libcurl +- openssl-libs +- krb5-libs +- libicu +- zlib + +Fedora users: If your OpenSSL's version >= 1.1, you'll need to install **compat-openssl10**. + +For .NET Core 2.0, the following dependencies are also required: + +- libunwind +- libuuid + +For more information about the dependencies, see [Self-contained Linux apps](https://github.com/dotnet/core/blob/master/Documentation/self-contained-linux-apps.md). + +For .NET Core apps that use the *System.Drawing.Common* assembly, you'll also need the following dependency: + +- libgdiplus (version 6.0.1 or later) + +> [!WARNING] +> Most versions of CentOS and Fedora include an earlier version of libgdiplus. You can install a recent version +> of libgdiplus by adding the Mono repository to your system. For more information, +> see . + +::: zone-end + +::: zone pivot="os-macos" + +.NET Core is supported on the following macOS releases: + +> [!NOTE] +> A `+` symbol represents the minimum version. + +| .NET Core Version | macOS | Architectures | | +| ----------------- | --------------------- | --------------| --- | +| 3.0 | High Sierra (10.13+) | x64 | [More information](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md) | +| 2.2 | Sierra (10.12+) | x64 | [More information](https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-supported-os.md) | +| 2.1 | Sierra (10.12+) | x64 | [More information](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md) | + +## libgdiplus + +.NET Core applications that use the *System.Drawing.Common* assembly require libgdiplus to be installed. + +An easy way to obtain libgdiplus is by using the [Homebrew ("brew")](https://brew.sh/) package manager for macOS. After installing *brew*, install libgdiplus by executing the following commands at a Terminal (command) prompt: + +```console +brew update +brew install mono-libgdiplus +``` + +::: zone-end + +## Next steps + +- To develop and run apps, install the [.NET Core SDK](sdk.md) (includes the runtime). +- To run apps others have created, install the [.NET Core runtime](runtime.md). diff --git a/docs/core/install/how-to-detect-installed-versions.md b/docs/core/install/how-to-detect-installed-versions.md new file mode 100644 index 0000000000000..9ff542135d291 --- /dev/null +++ b/docs/core/install/how-to-detect-installed-versions.md @@ -0,0 +1,161 @@ +--- +title: Check installed .NET Core versions on Windows, Linux, and macOS - .NET Core +description: Learn how to list which versions of .NET Core are installed on your computer. This includes the .NET Core runtime and SDK. +author: thraka +ms.author: adegeo +ms.date: 11/01/2019 +ms.custom: "updateeachrelease" +zone_pivot_groups: operating-systems-set-one +--- + +# How to check that .NET Core is already installed + +This article teaches you how to check which versions of the .NET Core runtime and SDK are installed on your computer. .NET core may have already been installed if you have an integrated development environment, such as Visual Studio or Visual Studio for Mac. + +Installing an SDK installs the corresponding runtime. + +If any command in this article fails, you don't have the runtime or SDK installed. For more information, see [Download and install .NET Core](index.md). + +## Check SDK versions + +You can see which versions of the .NET Core SDK are currently installed with a terminal. Open a terminal and run the `dotnet --list-sdks` command. + +::: zone pivot="os-windows" + +```console +dotnet --list-sdks + +2.1.500 [C:\program files\dotnet\sdk] +2.1.502 [C:\program files\dotnet\sdk] +2.1.504 [C:\program files\dotnet\sdk] +2.1.600 [C:\program files\dotnet\sdk] +2.1.602 [C:\program files\dotnet\sdk] +2.2.101 [C:\program files\dotnet\sdk] +3.0.100 [C:\program files\dotnet\sdk] +``` + +::: zone-end + +::: zone pivot="os-linux" + +```bash +dotnet --list-sdks + +2.1.500 [/home/user/dotnet/sdk] +2.1.502 [/home/user/dotnet/sdk] +2.1.504 [/home/user/dotnet/sdk] +2.1.600 [/home/user/dotnet/sdk] +2.1.602 [/home/user/dotnet/sdk] +2.2.101 [/home/user/dotnet/sdk] +3.0.100 [/home/user/dotnet/sdk] +``` + +::: zone-end + +::: zone pivot="os-macos" + +```bash +dotnet --list-sdks + +2.1.500 [/usr/local/share/dotnet/sdk] +2.1.502 [/usr/local/share/dotnet/sdk] +2.1.504 [/usr/local/share/dotnet/sdk] +2.1.600 [/usr/local/share/dotnet/sdk] +2.1.602 [/usr/local/share/dotnet/sdk] +2.2.101 [/usr/local/share/dotnet/sdk] +3.0.100 [/usr/local/share/dotnet/sdk] +``` + +::: zone-end + +## Check runtime versions + +You can see which versions of the .NET Core runtime are currently installed with the `dotnet --list-runtimes` command. + +::: zone pivot="os-windows" + +```console +dotnet --list-runtimes + +Microsoft.AspNetCore.All 2.1.7 [c:\program files\dotnet\shared\Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.1.13 [c:\program files\dotnet\shared\Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.0 [c:\program files\dotnet\shared\Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.3 [c:\program files\dotnet\shared\Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.7 [c:\program files\dotnet\shared\Microsoft.AspNetCore.All] +Microsoft.AspNetCore.App 2.1.6 [c:\program files\dotnet\shared\Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.1.7 [c:\program files\dotnet\shared\Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.1.13 [c:\program files\dotnet\shared\Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.2.0 [c:\program files\dotnet\shared\Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.2.7 [c:\program files\dotnet\shared\Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 3.0.0 [c:\program files\dotnet\shared\Microsoft.AspNetCore.App] +Microsoft.NETCore.App 2.1.7 [c:\program files\dotnet\shared\Microsoft.NETCore.App] +Microsoft.NETCore.App 2.1.13 [c:\program files\dotnet\shared\Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.0 [c:\program files\dotnet\shared\Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.3 [c:\program files\dotnet\shared\Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.7 [c:\program files\dotnet\shared\Microsoft.NETCore.App] +Microsoft.NETCore.App 3.0.0 [c:\program files\dotnet\shared\Microsoft.NETCore.App] +Microsoft.WindowsDesktop.App 3.0.0 [c:\program files\dotnet\shared\Microsoft.WindowsDesktop.App] +``` + +::: zone-end + +::: zone pivot="os-linux" + +```bash +dotnet --list-runtimes + +Microsoft.AspNetCore.All 2.1.7 [/home/user/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.1.13 [/home/user/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.0 [/home/user/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.3 [/home/user/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.7 [/home/user/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.App 2.1.6 [/home/user/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.1.7 [/home/user/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.1.13 [/home/user/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.2.0 [/home/user/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.2.7 [/home/user/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 3.0.0 [/home/user/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.NETCore.App 2.1.7 [/home/user/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.1.13 [/home/user/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.0 [/home/user/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.3 [/home/user/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.7 [/home/user/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 3.0.0 [/home/user/dotnet/shared/Microsoft.NETCore.App] +``` + +::: zone-end + +::: zone pivot="os-macos" + +```bash +dotnet --list-sdks + +Microsoft.AspNetCore.All 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.All 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] +Microsoft.AspNetCore.App 2.1.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] +Microsoft.NETCore.App 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] +Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] +``` + +::: zone-end + +## More information + +You can see both the SDK versions and runtime versions with the command `dotnet --info`. You'll also get other environmental related information, such as the operating system version and runtime identifier (RID). + +## Next steps + +- [Install the .NET Core Runtime](runtime.md). +- [Install the .NET Core SDK](sdk.md). diff --git a/docs/core/install/includes/package-manager-heading-hack-pkgname.md b/docs/core/install/includes/package-manager-heading-hack-pkgname.md new file mode 100644 index 0000000000000..0507614eaadc0 --- /dev/null +++ b/docs/core/install/includes/package-manager-heading-hack-pkgname.md @@ -0,0 +1,31 @@ + +The packages added to the package manager feeds are named in a hackable format: `{product}-{type}-{version}`. + +- **product**\ +The type of .NET product to install. Valid options are: + + - dotnet + - aspnetcore + +- **type**\ +Chooses the SDK or the runtime. Valid options are: + + - sdk + - runtime + +- **version**\ +The version of the SDK or runtime to install. This article will always give the instructions for the latest supported version. Valid options are any released version, such as: + + - 3.0 + - 2.2 + - 2.1 + +### Examples + +- Install the .NET Core 2.2 SDK: `dotnet-sdk-2.2` +- Install the ASP.NET Core 3.0 runtime: `aspnetcore-runtime-3.0` +- Install the .NET Core 2.1 runtime: `dotnet-runtime-2.1` + +### Troubleshoot + +If the package combination doesn't work, it's not available. For example, there isn't an ASP.NET Core SDK, the SDK components are included with the .NET Core SDK. The value `aspnetcore-sdk-2.2` is incorrect and should be `dotnet-sdk-2.2` diff --git a/docs/core/install/includes/package-manager-switcher.md b/docs/core/install/includes/package-manager-switcher.md new file mode 100644 index 0000000000000..cb0530115663c --- /dev/null +++ b/docs/core/install/includes/package-manager-switcher.md @@ -0,0 +1,16 @@ + +> [!div class="op_single_selector"] +> +> - [RHEL 7 - x64](../linux-package-manager-rhel7.md) +> - [RHEL 8.1 - x64](../linux-package-manager-rhel81.md) +> - [Ubuntu 16.04 - x64](../linux-package-manager-ubuntu-1604.md) +> - [Ubuntu 18.04 - x64](../linux-package-manager-ubuntu-1804.md) +> - [Ubuntu 19.04 - x64](../linux-package-manager-ubuntu-1904.md) +> - [Debian 9 - x64](../linux-package-manager-debian9.md) +> - [Debian 10 - x64](../linux-package-manager-debian10.md) +> - [Fedora 29 - x64](../linux-package-manager-fedora29.md) +> - [Fedora 30 - x64](../linux-package-manager-fedora30.md) +> - [CentOS 7 - x64](../linux-package-manager-centos7.md) +> - [OpenSUSE 15 - x64](../linux-package-manager-opensuse15.md) +> - [SLES 12 - x64](../linux-package-manager-sles12.md) +> - [SLES 15 - x64](../linux-package-manager-sles15.md) diff --git a/docs/core/install/index.md b/docs/core/install/index.md new file mode 100644 index 0000000000000..2e2fdcb8f19e4 --- /dev/null +++ b/docs/core/install/index.md @@ -0,0 +1,22 @@ +--- +title: Install .NET Core on Windows, Linux, and macOS - .NET Core +description: Learn where and what to install for .NET Core on Windows, Linux, and macOS versions. Discover the dependencies required to develop, deploy, and run .NET Core apps. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Download and install .NET Core + +This article provides information on how to download and install .NET Core. There are two parts to .NET Core, the **runtime** which is used to run apps, and the **SDK** which is used to create apps. The SDK includes the runtime. + +- If you're a user who needs .NET Core to run apps, see [Install the .NET Core Runtime](runtime.md). + +- If you're a developer who needs .NET Core to create apps, see the [Install the .NET Core SDK](sdk.md). + +> [!NOTE] +> The .NET Core SDK includes the runtime. + +## Dependencies + +.NET Core is supported on Windows, Linux, and macOS. For a full list of requirements, see [Supported operating systems](dependencies.md). diff --git a/docs/core/install/linux-package-manager-centos7.md b/docs/core/install/linux-package-manager-centos7.md new file mode 100644 index 0000000000000..4ee1a5103361c --- /dev/null +++ b/docs/core/install/linux-package-manager-centos7.md @@ -0,0 +1,57 @@ +--- +title: Install .NET Core on CentOS 7 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on CentOS 7. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# CentOS 7 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on CentOS 7. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following command. + +```bash +sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following command. + +```bash +sudo yum install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following command. + +```bash +sudo yum install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following command. + +```bash +sudo yum install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-debian10.md b/docs/core/install/linux-package-manager-debian10.md new file mode 100644 index 0000000000000..adb7a28a02e25 --- /dev/null +++ b/docs/core/install/linux-package-manager-debian10.md @@ -0,0 +1,71 @@ +--- +title: Install .NET Core on Debian 10 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on Debian 10. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Debian 10 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on Debian 10. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg +sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ +wget -q https://packages.microsoft.com/config/debian/10/prod.list +sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list +sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg +sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-debian9.md b/docs/core/install/linux-package-manager-debian9.md new file mode 100644 index 0000000000000..a5a0d10cd94c9 --- /dev/null +++ b/docs/core/install/linux-package-manager-debian9.md @@ -0,0 +1,71 @@ +--- +title: Install .NET Core on Debian 9 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on Debian 9. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Debian 9 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on Debian 9. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg +sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ +wget -q https://packages.microsoft.com/config/debian/9/prod.list +sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list +sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg +sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-fedora29.md b/docs/core/install/linux-package-manager-fedora29.md new file mode 100644 index 0000000000000..3b215d11f0557 --- /dev/null +++ b/docs/core/install/linux-package-manager-fedora29.md @@ -0,0 +1,58 @@ +--- +title: Install .NET Core on Fedora 29 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on Fedora 29. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Fedora 29 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on Fedora 29. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc +sudo wget -q -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/29/prod.repo +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following command. + +```bash +sudo dnf install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following command. + +```bash +sudo dnf install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following command. + +```bash +sudo dnf install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-fedora30.md b/docs/core/install/linux-package-manager-fedora30.md new file mode 100644 index 0000000000000..8fe6ac4658d4f --- /dev/null +++ b/docs/core/install/linux-package-manager-fedora30.md @@ -0,0 +1,58 @@ +--- +title: Install .NET Core on Fedora 30 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on Fedora 30. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Fedora 30 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on Fedora 30. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc +sudo wget -q -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/30/prod.repo +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following command. + +```bash +sudo dnf install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following command. + +```bash +sudo dnf install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following command. + +```bash +sudo dnf install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-opensuse15.md b/docs/core/install/linux-package-manager-opensuse15.md new file mode 100644 index 0000000000000..4b44dd5810c4c --- /dev/null +++ b/docs/core/install/linux-package-manager-opensuse15.md @@ -0,0 +1,61 @@ +--- +title: Install .NET Core on openSUSE 15 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on openSUSE 15. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# openSUSE 15 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on openSUSE 15. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +sudo zypper install libicu +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc +wget -q https://packages.microsoft.com/config/opensuse/15/prod.repo +sudo mv prod.repo /etc/zypp/repos.d/microsoft-prod.repo +sudo chown root:root /etc/zypp/repos.d/microsoft-prod.repo +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following command. + +```bash +sudo zypper install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following command. + +```bash +sudo zypper install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following command. + +```bash +sudo zypper install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-rhel7.md b/docs/core/install/linux-package-manager-rhel7.md new file mode 100644 index 0000000000000..c0ff40de67670 --- /dev/null +++ b/docs/core/install/linux-package-manager-rhel7.md @@ -0,0 +1,48 @@ +--- +title: Install .NET Core on Linux RHEL 7 package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on RHEL 7. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# RHEL 7 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on RHEL 7. + +## Register your Red Hat subscription + +To install .NET Core from Red Hat on RHEL, you first need to register using the Red Hat Subscription Manager. If this hasn't been done on your system, or if you're unsure, see the [Red Hat Product Documentation for .NET Core](https://access.redhat.com/documentation/net_core/). + +## Install the .NET Core SDK + +After registering with the Subscription Manager, you're ready to install and enable the .NET Core SDK. In your terminal, run the following commands to enable the RHEL 7 dotnet channel and install . + +```bash +subscription-manager repos --enable=rhel-7-server-dotnet-rpms +yum install rh-dotnet30 -y +scl enable rh-dotnet30 bash +``` + +## Install the ASP.NET Core Runtime + +After registering with the Subscription Manager, you're ready to install and enable the ASP.NET Core Runtime. In your terminal, run the following commands. + + +```bash +subscription-manager repos --enable=rhel-7-server-dotnet-rpms +yum install rh-dotnet30-dotnet-runtime-3.0 -y +scl enable rh-dotnet30 bash +``` + +## Install the .NET Core Runtime + +After registering with the Subscription Manager, you're ready to install and enable the .NET Core Runtime. In your terminal, run the following commands. + +```bash +subscription-manager repos --enable=rhel-7-server-dotnet-rpms +yum install rh-dotnet30-dotnet-runtime-3.0 -y +scl enable rh-dotnet30 bash +``` diff --git a/docs/core/install/linux-package-manager-rhel81.md b/docs/core/install/linux-package-manager-rhel81.md new file mode 100644 index 0000000000000..55dffdff3ba8c --- /dev/null +++ b/docs/core/install/linux-package-manager-rhel81.md @@ -0,0 +1,45 @@ +--- +title: Install .NET Core on Linux RHEL 8.1 package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on RHEL 8.1. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# RHEL 8.1 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on RHEL 8.1. + +## Register your Red Hat subscription + +To install .NET Core from Red Hat on RHEL, you first need to register using the Red Hat Subscription Manager. If this hasn't been done on your system, or if you're unsure, see the [Red Hat Product Documentation for .NET Core](https://access.redhat.com/documentation/net_core/). + +## Install the .NET Core SDK + +After registering with the Subscription Manager, you're ready to install and enable the .NET Core SDK. In your terminal, run the following commands. + +```bash +dnf install dotnet-sdk-3.0 +scl enable dotnet-sdk-3.0 bash +``` + +## Install the ASP.NET Core Runtime + +After registering with the Subscription Manager, you're ready to install and enable the ASP.NET Core Runtime. In your terminal, run the following commands. + + +```bash +dnf install aspnetcore-runtime-3.0 +scl enable aspnetcore-runtime-3.0 bash +``` + +## Install the .NET Core Runtime + +After registering with the Subscription Manager, you're ready to install and enable the .NET Core Runtime. In your terminal, run the following commands. + +```bash +sudo dnf install dotnet-runtime-3.0 +scl enable dotnet-runtime-3.0 bash +``` diff --git a/docs/core/install/linux-package-manager-sles12.md b/docs/core/install/linux-package-manager-sles12.md new file mode 100644 index 0000000000000..31e4f33d96ba8 --- /dev/null +++ b/docs/core/install/linux-package-manager-sles12.md @@ -0,0 +1,57 @@ +--- +title: Install .NET Core on SLES 12 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on SLES 12. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# SLES 12 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on SLES 12. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following command. + +```bash +sudo rpm -Uvh https://packages.microsoft.com/config/sles/12/packages-microsoft-prod.rpm +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following command. + +```bash +sudo zypper install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following command. + +```bash +sudo zypper install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following command. + +```bash +sudo zypper install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-sles15.md b/docs/core/install/linux-package-manager-sles15.md new file mode 100644 index 0000000000000..722ffc0a5e09d --- /dev/null +++ b/docs/core/install/linux-package-manager-sles15.md @@ -0,0 +1,57 @@ +--- +title: Install .NET Core on SLES 15 - package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on SLES 15. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# SLES 15 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on SLES 15. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following command. + +```bash +sudo rpm -Uvh https://packages.microsoft.com/config/sles/15/packages-microsoft-prod.rpm +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following command. + +```bash +sudo zypper install dotnet-sdk-3.0 +``` + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET runtime. In your terminal, run the following command. + +```bash +sudo zypper install aspnetcore-runtime-3.0 +``` + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following command. + +```bash +sudo zypper install dotnet-runtime-3.0 +``` + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] diff --git a/docs/core/install/linux-package-manager-ubuntu-1604.md b/docs/core/install/linux-package-manager-ubuntu-1604.md new file mode 100644 index 0000000000000..e71347488b52d --- /dev/null +++ b/docs/core/install/linux-package-manager-ubuntu-1604.md @@ -0,0 +1,101 @@ +--- +title: Install .NET Core on Ubuntu 16.04 package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on Ubuntu 16.04. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Ubuntu 16.04 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on Ubuntu 16.04. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +sudo dpkg -i packages-microsoft-prod.deb +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-sdk-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package dotnet-sdk-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET Core runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install aspnetcore-runtime-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package aspnetcore-runtime-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-runtime-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package dotnet-runtime-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] + +## Troubleshoot the package manager + +If you receive an error message similar to **Unable to locate package {the .NET Core package}**, run the following commands. + +```bash +sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb +sudo apt-get update +sudo apt-get install {the .NET Core package} +``` + +If that doesn't work, you can run a manual install with the following commands. + +```bash +sudo apt-get install -y gpg +wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor microsoft.asc.gpg +sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ +wget -q https://packages.microsoft.com/config/ubuntu/16.04/prod.list +sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list +sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg +sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list +sudo apt-get install -y apt-transport-https +sudo apt-get update +sudo apt-get install {the .NET Core package} +``` diff --git a/docs/core/install/linux-package-manager-ubuntu-1804.md b/docs/core/install/linux-package-manager-ubuntu-1804.md new file mode 100644 index 0000000000000..7865f8bfa4034 --- /dev/null +++ b/docs/core/install/linux-package-manager-ubuntu-1804.md @@ -0,0 +1,104 @@ +--- +title: Install .NET Core on Ubuntu 18.04 package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on Ubuntu 18.04. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Ubuntu 18.04 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on Ubuntu 18.04. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +sudo dpkg -i packages-microsoft-prod.deb +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following commands. + +```bash +sudo add-apt-repository universe +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-sdk-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package dotnet-sdk-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET Core runtime. In your terminal, run the following commands. + +```bash +sudo add-apt-repository universe +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install aspnetcore-runtime-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package aspnetcore-runtime-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following commands. + +```bash +sudo add-apt-repository universe +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-runtime-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package dotnet-runtime-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] + +## Troubleshoot the package manager + +If you receive an error message similar to **Unable to locate package {the .NET Core package}**, run the following commands. + +```bash +sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb +sudo apt-get update +sudo apt-get install {the .NET Core package} +``` + +If that doesn't work, you can run a manual install with the following commands. + +```bash +sudo apt-get install -y gpg +wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor microsoft.asc.gpg +sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ +wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list +sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list +sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg +sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list +sudo apt-get install -y apt-transport-https +sudo apt-get update +sudo apt-get install {the .NET Core package} +``` diff --git a/docs/core/install/linux-package-manager-ubuntu-1904.md b/docs/core/install/linux-package-manager-ubuntu-1904.md new file mode 100644 index 0000000000000..d17f1c79c49ca --- /dev/null +++ b/docs/core/install/linux-package-manager-ubuntu-1904.md @@ -0,0 +1,101 @@ +--- +title: Install .NET Core on Ubuntu 19.04 package manager - .NET Core +description: Use a package manager to install .NET Core SDK and runtime on Ubuntu 19.04. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +--- + +# Ubuntu 19.04 Package Manager - Install .NET Core + +[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)] + +This article describes how to use a package manager to install .NET Core on Ubuntu 19.04. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes. + +## Register Microsoft key and feed + +Before installing .NET, you'll need to: + +- Register the Microsoft key +- register the product repository +- Install required dependencies + +This only needs to be done once per machine. + +Open a terminal and run the following commands. + +```bash +wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +sudo dpkg -i packages-microsoft-prod.deb +``` + +## Install the .NET Core SDK + +Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-sdk-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package dotnet-sdk-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## Install the ASP.NET Core runtime + +Update the products available for installation, then install the ASP.NET Core runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install aspnetcore-runtime-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package aspnetcore-runtime-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## Install the .NET Core runtime + +Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following commands. + +```bash +sudo apt-get update +sudo apt-get install apt-transport-https +sudo apt-get update +sudo apt-get install dotnet-runtime-3.0 +``` + +> [!IMPORTANT] +> If you receive an error message similar to **Unable to locate package dotnet-runtime-3.0**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section. + +## How to install other versions + +[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)] + +## Troubleshoot the package manager + +If you receive an error message similar to **Unable to locate package {the .NET Core package}**, run the following commands. + +```bash +sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb +sudo apt-get update +sudo apt-get install {the .NET Core package} +``` + +If that doesn't work, you can run a manual install with the following commands. + +```bash +sudo apt-get install -y gpg +wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor microsoft.asc.gpg +sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ +wget -q https://packages.microsoft.com/config/ubuntu/19.04/prod.list +sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list +sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg +sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list +sudo apt-get install -y apt-transport-https +sudo apt-get update +sudo apt-get install {the .NET Core package} +``` diff --git a/docs/core/install/linux-package-managers.md b/docs/core/install/linux-package-managers.md new file mode 100644 index 0000000000000..188cda2cb3725 --- /dev/null +++ b/docs/core/install/linux-package-managers.md @@ -0,0 +1,4 @@ +--- +redirect_url: linux-package-manager-rhel7 +ms.custom: updateeachrelease +--- \ No newline at end of file diff --git a/docs/core/install/media/install-sdk/mac-install-selection.png b/docs/core/install/media/install-sdk/mac-install-selection.png new file mode 100644 index 0000000000000..a389fa8e9223b Binary files /dev/null and b/docs/core/install/media/install-sdk/mac-install-selection.png differ diff --git a/docs/core/install/media/install-sdk/windows-install-visual-studio-2019.png b/docs/core/install/media/install-sdk/windows-install-visual-studio-2019.png new file mode 100644 index 0000000000000..a9b624ea1445b Binary files /dev/null and b/docs/core/install/media/install-sdk/windows-install-visual-studio-2019.png differ diff --git a/docs/core/install/runtime.md b/docs/core/install/runtime.md new file mode 100644 index 0000000000000..e658b8162ef00 --- /dev/null +++ b/docs/core/install/runtime.md @@ -0,0 +1,77 @@ +--- +title: Install .NET Core runtime on Windows, Linux, and macOS - .NET Core +description: Learn how to install .NET Core on Windows, Linux, and macOS. Discover the dependencies required to run .NET Core apps. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +ms.custom: "updateeachrelease" +zone_pivot_groups: operating-systems-set-one +--- + +# Install the .NET Core Runtime + +In this article, you'll learn how to download and install the .NET Core runtime. The .NET Core runtime is used to run apps created with .NET Core. + +You can download and install .NET Core directly with one of the following links: + +- [.NET Core 3.1 Preview 3 downloads](https://dotnet.microsoft.com/download/dotnet-core/3.1) +- [.NET Core 3.0 downloads](https://dotnet.microsoft.com/download/dotnet-core/3.0) +- [.NET Core 2.2 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.2) +- [.NET Core 2.1 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.1) + +## Install with an installer + +Both Windows and macOS have standalone installers that can be used to install the .NET Core 3.0 runtime. + +- Windows [x64 CPUs](https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-3.0.0-windows-x64-installer) | [x32 CPUs](https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-3.0.0-windows-x86-installer) +- macOS [x64 CPUs](https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-3.0.0-macos-x64-installer) + +::: zone pivot="os-linux" + +## Install with a package manager + +You can install the .NET Core Runtime with many of the common Linux package managers. For more information, see [Linux Package Manager - Install .NET Core](linux-package-manager-rhel7.md). + +::: zone-end + +::: zone pivot="os-windows" + +## Install with PowerShell automation + +The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and non-admin installs of the runtime. You can download the script from the [dotnet-install script reference page](../tools/dotnet-install-script.md). + +The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET Core 2.1. To install the current release of .NET Core (3.0), run the script with the following switch: + +```powershell +dotnet-install.ps1 -Channel 3.0 +``` + +::: zone-end + +::: zone pivot="os-linux,os-macos" + +## Install with bash automation + +The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and non-admin installs of the runtime. You can download the script from the [dotnet-install script reference page](../tools/dotnet-install-script.md). + +The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET Core 2.1. To install the current release of .NET Core (3.0), run the script with the following switch: + +```bash +./dotnet-install.sh -c Current +``` + +::: zone-end + +## Docker + +Containers provide a lightweight way to isolate your application from the rest of the host system. Containers on the same machine share just the kernel and use resources given to your application. + +.NET Core can run in a Docker container. Official .NET Core Docker images are published to the Microsoft Container Registry (MCR) and are discoverable at the [Microsoft .NET Core Docker Hub repository](https://hub.docker.com/_/microsoft-dotnet-core/). Each repository contains images for different combinations of the .NET (SDK or Runtime) and OS that you can use. + +Microsoft provides images that are tailored for specific scenarios. For example, the [ASP.NET Core repository](https://hub.docker.com/_/microsoft-dotnet-core-aspnet/) provides images that are built for running ASP.NET Core apps in production. + +For more information about using .NET Core in a Docker container, see [Introduction to .NET and Docker](../docker/introduction.md) and [Samples](https://github.com/dotnet/dotnet-docker/blob/master/samples/README.md). + +## Next steps + +- [How to check if .NET Core is already installed](how-to-detect-installed-versions.md). diff --git a/docs/core/install/sdk.md b/docs/core/install/sdk.md new file mode 100644 index 0000000000000..8a9e090644b37 --- /dev/null +++ b/docs/core/install/sdk.md @@ -0,0 +1,149 @@ +--- +title: Install .NET Core SDK on Windows, Linux, and macOS - .NET Core +description: Learn how to install .NET Core on Windows, Linux, and macOS. Discover the dependencies required to develop .NET Core apps. +author: thraka +ms.author: adegeo +ms.date: 11/06/2019 +ms.custom: "updateeachrelease" +zone_pivot_groups: operating-systems-set-one +--- + +# Install the .NET Core SDK + +In this article, you'll learn how to install the .NET Core SDK. The .NET Core SDK is used to create .NET Core apps and libraries. The .NET Core runtime is always installed with the SDK. + +You can download and install .NET Core directly with one of the following links: + +- [.NET Core 3.1 Preview 3 downloads](https://dotnet.microsoft.com/download/dotnet-core/3.1) +- [.NET Core 3.0 downloads](https://dotnet.microsoft.com/download/dotnet-core/3.0) +- [.NET Core 2.2 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.2) +- [.NET Core 2.1 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.1) + +You can also install .NET Core as part of an integrated development environment (IDE), detailed in the sections below. + +## Install with an installer + +Both Windows and macOS have standalone installers that can be used to install the .NET Core 3.0 SDK. + +- Windows [x64 CPUs](https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-3.0.100-windows-x64-installer) | [x32 CPUs](https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-3.0.100-windows-x86-installer) +- macOS [x64 CPUs](https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-3.0.100-macos-x64-installer) + +::: zone pivot="os-linux" + +## Install with a package manager + +You can install the .NET Core SDK with many of the common Linux package managers. For more information, see [Linux Package Manager - Install .NET Core](linux-package-manager-rhel7.md). + +::: zone-end + +::: zone pivot="os-windows" + +## Install with Visual Studio + +If you're using Visual Studio to develop .NET Core apps, the following table describes the minimum required version of Visual Studio based on the target .NET Core SDK version. + +| .NET Core SDK version | Visual Studio version | +| --------------------- | ------------------------------------------ | +| 3.0 | Visual Studio 2019 version 16.3 or higher. | +| 2.2 | Visual Studio 2017 version 15.9 or higher. | +| 2.1 | Visual Studio 2017 version 15.7 or higher. | + +If you already have Visual Studio installed, you can check your version with the following steps. + +01. Open Visual Studio. +01. Select **Help** > **About Microsoft Visual Studio**. +01. Read the version number from the **About** dialog. + +Visual Studio can install the latest .NET Core SDK and runtime. + +- [Download Visual Studio](https://www.visualstudio.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2019). + +### Select a workload + +When installing or modifying Visual Studio, select one of the following workloads, depending on the kind of application you're building: + +- The **.NET Core cross-platform development** workload in the **Other Toolsets** section. +- The **ASP.NET and web development** workload in the **Web & Cloud** section. +- The **Azure development** workload in the **Web & Cloud** section. +- The **.NET desktop development** workload in the **Desktop & Mobile** section. + +[![Windows Visual Studio 2019 with .NET Core workload](media/install-sdk/windows-install-visual-studio-2019.png)](media/install-sdk/windows-install-visual-studio-2019.png#lightbox) + +::: zone-end + +::: zone pivot="os-macos" + +## Install with Visual Studio for Mac + +Visual Studio for Mac installs the .NET Core SDK when the **.NET Core** workload is selected. To get started with .NET Core development on macOS, see [Install Visual Studio 2019 for Mac](/visualstudio/mac/installation). + +[![macOS Visual Studio 2019 for Mac with .NET Core workload feature](media/install-sdk/mac-install-selection.png)](media/install-sdk/mac-install-selection.png#lightbox) + +::: zone-end + +## Install from Visual Studio Code + +Visual Studio Code is a powerful and lightweight source code editor that runs on your desktop. Visual Studio Code is available for Windows, macOS, and Linux. + +While Visual Studio Code doesn't come with .NET Core support, adding .NET Core support is simple. + +01. [Download and install Visual Studio Code](https://code.visualstudio.com/Download). +01. [Download and install the .NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core/3.0). +01. [Install the C# extension from the Visual Studio Code marketplace](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp). + +::: zone pivot="os-windows" + +## Install with PowerShell automation + +The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and non-admin installs of the SDK. You can download the script from the [dotnet-install script reference page](../tools/dotnet-install-script.md). + +The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET Core 2.1. To install the current release of .NET Core, run the script with the following switch. + +```powershell +dotnet-install.ps1 -Channel Current +``` + +::: zone-end + +::: zone pivot="os-linux,os-macos" + +## Install with bash automation + +The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and non-admin installs of the SDK. You can download the script from the [dotnet-install script reference page](../tools/dotnet-install-script.md). + +The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET Core 2.1. To install the current release of .NET Core, run the script with the following switch. + +```bash +./dotnet-install.sh -c Current +``` + +::: zone-end + +## Docker + +Containers provide a lightweight way to isolate your application from the rest of the host system. Containers on the same machine share just the kernel and use resources given to your application. + +.NET Core can run in a Docker container. Official .NET Core Docker images are published to the Microsoft Container Registry (MCR) and are discoverable at the [Microsoft .NET Core Docker Hub repository](https://hub.docker.com/_/microsoft-dotnet-core/). Each repository contains images for different combinations of the .NET (SDK or Runtime) and OS that you can use. + +Microsoft provides images that are tailored for specific scenarios. For example, the [ASP.NET Core repository](https://hub.docker.com/_/microsoft-dotnet-core-aspnet/) provides images that are built for running ASP.NET Core apps in production. + +For more information about using .NET Core in a Docker container, see [Introduction to .NET and Docker](../docker/introduction.md) and [Samples](https://github.com/dotnet/dotnet-docker/blob/master/samples/README.md). + +## Next steps + +::: zone pivot="os-windows" + +- [Tutorial: C# Hello World tutorial](../tutorials/with-visual-studio.md). +- [Tutorial: Visual Basic Hello World tutorial](../tutorials/vb-with-visual-studio.md). +- [Tutorial: Create a new app with Visual Studio Code](https://code.visualstudio.com/docs/languages/dotnet). +- [Tutorial: Containerize a .NET Core app](../docker/build-container.md). + +::: zone-end + +::: zone pivot="os-macos" + +- [Tutorial: Get started on macOS](../tutorials/using-on-mac-vs.md). +- [Tutorial: Create a new app with Visual Studio Code](https://code.visualstudio.com/docs/languages/dotnet). +- [Tutorial: Containerize a .NET Core app](../docker/build-container.md). + +::: zone-end diff --git a/docs/core/linux-prerequisites.md b/docs/core/linux-prerequisites.md deleted file mode 100644 index a41faedbb69ea..0000000000000 --- a/docs/core/linux-prerequisites.md +++ /dev/null @@ -1,192 +0,0 @@ ---- -title: Prerequisites for .NET Core on Linux -description: Supported Linux versions and .NET Core dependencies to develop, deploy, and run .NET Core applications on Linux machines. -author: leecow -ms.author: leecow -ms.date: 10/11/2019 ---- -# Prerequisites for .NET Core on Linux - -This article shows the dependencies needed to develop .NET Core applications on Linux. The supported Linux distributions/versions, and dependencies that follow apply to the two ways of developing .NET Core apps on Linux: - -- [Command-line with your favorite editor](tutorials/using-with-xplat-cli.md) -- [Visual Studio Code](https://code.visualstudio.com/) - -> [!NOTE] -> The .NET Core SDK package is not required for production servers/environments. Only the .NET Core runtime package is needed for apps deployed to production environments. The .NET Core runtime is deployed with apps as part of a self-contained deployment, however, it must be deployed for Framework-dependent deployed apps separately. For more information about framework-dependent and self-contained deployment types, see [.NET Core application deployment](./deploying/index.md). Also see [Self-contained Linux applications](https://github.com/dotnet/core/blob/master/Documentation/self-contained-linux-apps.md) for specific guidelines. - -## Supported Linux versions - - - -# [.NET Core 3.0](#tab/netcore30) - -.NET Core 3.0 treats Linux as a single operating system. There is a single Linux build (per chip architecture) for supported Linux distributions. - -For download links and more information, see [.NET Core 3.0 downloads](https://dotnet.microsoft.com/download/dotnet-core/3.0). - -.NET Core 3.0 is supported on the following Linux distributions/versions): - -> [!NOTE] -> A `+` symbol represents the minimum version. - -| OS | Version | Architectures | -| ------------------------------ | --------------------- | ---------------- | -| Red Hat Enterprise Linux | 6+, 7 | x64 | -| Oracle Linux | 7 | x64 | -| CentOS | 7 | x64 | -| Fedora | 29+ | x64 | -| Debian | 9+ | x64, ARM32, ARM64 | -| Ubuntu | 16.04+ | x64, ARM32, ARM64 | -| Linux Mint | 18+ | x64 | -| openSUSE | 15+ | x64 | -| SUSE Enterprise Linux (SLES) | 12 SP2+ | x64 | -| Alpine Linux | 3.8+ | x64, ARM64 | - -See [.NET Core 3.0 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md) for the complete list of .NET Core 3.0 supported operating systems, distributions and versions, out of support OS versions, and lifecycle policy links. - -For more information about how to install .NET Core 3.0 on ARM64, see [Installing .NET Core 3.0 on Linux ARM64](https://gist.github.com/richlander/467813274cea8abc624553ee72b28213). - -# [.NET Core 2.2](#tab/netcore22) - -.NET Core 2.2 treats Linux as a single operating system. There is a single Linux build (per chip architecture) for supported Linux distributions. - -For download links and more information, see [.NET Core 2.2 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.2). - -.NET Core 2.2 is supported on the following Linux distributions/versions: - -> [!NOTE] -> A `+` symbol represents the minimum version. - -| OS | Version | Architectures | -| ------------------------------ | ----------------------- | ---------------- | -| Red Hat Enterprise Linux | 6, 7 | x64 | -| Oracle Linux | 7 | x64 | -| CentOS | 7 | x64 | -| Fedora | 29, 30 | x64 | -| Debian | 9 | x64, ARM32 | -| Ubuntu | 16.04, 18.04, 18.10 | x64, ARM32 | -| Linux Mint | 17, 18 | x64 | -| openSUSE | 15+ | x64 | -| SUSE Enterprise Linux (SLES) | 12 SP2+ | x64 | -| Alpine Linux | 3.7+ | x64 | - -See [.NET Core 2.2 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-supported-os.md) for the complete list of .NET Core 2.2 supported operating systems, distributions and versions, out of support OS versions, and lifecycle policy links. - -# [.NET Core 2.1](#tab/netcore21) - -.NET Core 2.1 treats Linux as a single operating system. There is a single Linux build (per chip architecture) for supported Linux distributions. - -For download links and more information, see [.NET Core 2.1 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.1). - -.NET Core 2.1 is supported on the following Linux distributions/versions: - -| OS | Version | Architectures | -| ------------------------------ | ----------------------- | ---------------- | -| Red Hat Enterprise Linux | 6, 7, 8 | x64 | -| Oracle Linux | 7 | x64 | -| CentOS | 7 | x64 | -| Fedora | 29, 30 | x64 | -| Debian | 9 | x64, ARM32 | -| Ubuntu | 16.04, 18.04, 19.04 | x64, ARM32 | -| Linux Mint | 17, 18 | x64 | -| openSUSE | 42.3+ | x64 | -| SUSE Enterprise Linux (SLES) | 12 SP2+ | x64 | -| Alpine Linux | 3.7+ | x64 | - -See [.NET Core 2.1 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md) for the complete list of .NET Core 2.1 supported operating systems, distributions and versions, out of support OS versions, and lifecycle policy links. - ---- - -## Linux distribution dependencies - -The following are intended to be examples. The exact versions and names may vary slightly on your Linux distribution of choice. - -### Ubuntu - -Ubuntu distributions require the following libraries installed: - -- liblttng-ust0 -- libcurl3 (for 14.x and 16.x) -- libcurl4 (for 18.x) -- libssl1.0.0 -- libkrb5-3 -- zlib1g -- libicu52 (for 14.x) -- libicu55 (for 16.x) -- libicu57 (for 17.x) -- libicu60 (for 18.x) - -For versions earlier than .NET Core 2.1, following dependencies are also required: - -- libunwind8 -- libuuid1 - -For .NET Core applications that use the *System.Drawing.Common* assembly, you also need the following dependency: - -* libgdiplus (version 6.0.1 or later) - -> [!NOTE] -> Most versions of Ubuntu include an earlier version of libgdiplus. You can install a recent version -> of libgdiplus by adding the Mono repository to your system. For more information, -> see . - -### CentOS and Fedora - -CentOS distributions require the following libraries installed: - -- lttng-ust -- libcurl -- openssl-libs -- krb5-libs -- libicu -- zlib - -Fedora users: If your openssl's version >= 1.1, you'll need to install compat-openssl10. - -For versions earlier than .NET Core 2.1, following dependencies are also required: - -- libunwind -- libuuid - -For more information about the dependencies, see [Self-contained Linux applications](https://github.com/dotnet/core/blob/master/Documentation/self-contained-linux-apps.md). - -For .NET Core applications that use the *System.Drawing.Common* assembly, you'll also need the following dependency: - -* libgdiplus (version 6.0.1 or later) - -> [!NOTE] -> Most versions of CentOS and Fedora include an earlier version of libgdiplus. You can install a recent version -> of libgdiplus by adding the Mono repository to your system. For more information, -> see . - -## Installing .NET Core dependencies with the native installers - -.NET Core native installers are available for supported Linux distributions/versions. The native installers require admin (sudo) access to the server. The advantage of using a native installer is that all of the .NET Core native dependencies are installed. Native installers also install the .NET Core SDK system-wide. - -On Linux, there are two installer package choices: - -- Using a feed-based package manager, such as apt-get for Ubuntu, or yum for CentOS/RHEL. -- Using the packages themselves, DEB or RPM. - -### Scripting Installs with the .NET Core installer script - -The [dotnet-install scripts](./tools/dotnet-install-script.md) are used to perform a non-admin install of the CLI toolchain and the shared runtime. You can download the script from . - -The script defaults to installing the latest "LTS" version, which is currently .NET Core 1.1. To install .NET Core 2.1, run the script with the following switch: - -```bash -./dotnet-install.sh -c Current -``` - -The installer bash script is used in automation scenarios and non-admin installations. This script also reads PowerShell switches, so they can be used with the script on Linux/OS X systems. - -## Troubleshoot - -If you have problems with a .NET Core installation on a supported Linux distribution/version, consult the following topics for your installed distributions/versions: - -- [.NET Core 3.0 known issues](https://github.com/dotnet/core/tree/master/release-notes/3.0) -- [.NET Core 2.2 known issues](https://github.com/dotnet/core/tree/master/release-notes/2.2) -- [.NET Core 2.1 known issues](https://github.com/dotnet/core/tree/master/release-notes/2.1) -- [.NET Core 1.1 known issues](https://github.com/dotnet/core/blob/master/release-notes/1.1) -- [.NET Core 1.0 known issues](https://github.com/dotnet/core/blob/master/release-notes/1.0) diff --git a/docs/core/macos-prerequisites.md b/docs/core/macos-prerequisites.md deleted file mode 100644 index fb9f35d948a6e..0000000000000 --- a/docs/core/macos-prerequisites.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Prerequisites for .NET Core on Mac -description: Supported macOS versions and .NET Core dependencies to develop, deploy, and run .NET Core applications on macOS machines. -author: thraka -ms.author: adegeo -ms.custom: "updateeachvsrelease" -ms.date: 10/11/2019 ---- -# Prerequisites for .NET Core on macOS - -This article shows you the supported macOS versions and .NET Core dependencies that you need to develop, deploy, and run .NET Core applications on macOS machines. The supported OS versions and dependencies that follow apply to the three ways of developing .NET Core apps on a Mac: via the [command-line with your favorite editor](tutorials/using-with-xplat-cli.md), [Visual Studio Code](https://code.visualstudio.com/), and [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link). - -## Downloads and dependencies - - - -# [.NET Core 3.0](#tab/netcore30) - -.NET Core 3.0 is supported on **macOS High Sierra (version 10.13)** and later versions. A **x64** CPU architecture is required. - -Download and install the .NET Core SDK from the [.NET Core 3.0 downloads](https://dotnet.microsoft.com/download/dotnet-core/3.0) page. [.NET Core 3.0 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md) for the complete list of .NET Core 3.0 supported operating systems, distributions and versions, out of support OS versions, and lifecycle policy links. - -For a list of known issues, see [.NET Core known issues](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-known-issues.md). - -# [.NET Core 2.2](#tab/netcore22) - -.NET Core 2.2 is supported on **macOS Sierra (version 10.12)** and later versions. A **x64** CPU architecture is required. - -Download and install the .NET Core SDK from the [.NET Core 2.2 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.2) page. [.NET Core 2.2 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-supported-os.md) for the complete list of .NET Core 2.2 supported operating systems, distributions and versions, out of support OS versions, and lifecycle policy links. - -For a list of known issues, see [.NET Core known issues](https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-known-issues.md). - -# [.NET Core 2.1](#tab/netcore21) - -.NET Core 2.1 is supported on **macOS Sierra (version 10.12)** and later versions. A **x64** CPU architecture is required. - -Download and install the .NET Core SDK from the [.NET Core 2.1 downloads](https://dotnet.microsoft.com/download/dotnet-core/2.1) page. [.NET Core 2.1 Supported OS Versions](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md) for the complete list of .NET Core 2.1 supported operating systems, distributions and versions, out of support OS versions, and lifecycle policy links. - -For a list of known issues, see [.NET Core known issues](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-known-issues.md). - ---- - -## libgdiplus - -.NET Core applications that use the *System.Drawing.Common* assembly require libgdiplus to be installed. - -An easy way to obtain libgdiplus is by using the [Homebrew ("brew")](https://brew.sh/) package manager for macOS. After installing *brew*, install libgdiplus by executing the following commands at a Terminal (command) prompt: - -```console -brew update -brew install mono-libgdiplus -``` - -## Visual Studio for Mac - -You can use any editor to develop .NET Core applications using the .NET Core SDK. However, if you want to develop .NET Core applications on a Mac in an integrated development environment, you can use [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link). diff --git a/docs/core/media/windows-prerequisites/target-dotnet-core-3-0.jpg b/docs/core/media/windows-prerequisites/target-dotnet-core-3-0.jpg deleted file mode 100644 index c749291596ed1..0000000000000 Binary files a/docs/core/media/windows-prerequisites/target-dotnet-core-3-0.jpg and /dev/null differ diff --git a/docs/core/media/windows-prerequisites/targeting-dotnet-core.jpg b/docs/core/media/windows-prerequisites/targeting-dotnet-core.jpg deleted file mode 100644 index f71121baf0c2c..0000000000000 Binary files a/docs/core/media/windows-prerequisites/targeting-dotnet-core.jpg and /dev/null differ diff --git a/docs/core/media/windows-prerequisites/vs-2017-workloads.jpg b/docs/core/media/windows-prerequisites/vs-2017-workloads.jpg deleted file mode 100644 index 5d61b567643e3..0000000000000 Binary files a/docs/core/media/windows-prerequisites/vs-2017-workloads.jpg and /dev/null differ diff --git a/docs/core/media/windows-prerequisites/vs-2019-workloads.jpg b/docs/core/media/windows-prerequisites/vs-2019-workloads.jpg deleted file mode 100644 index f8cf8745c5f19..0000000000000 Binary files a/docs/core/media/windows-prerequisites/vs-2019-workloads.jpg and /dev/null differ diff --git a/docs/core/rid-catalog.md b/docs/core/rid-catalog.md index 00df6b4cc5f1b..d5c90b5876f9c 100644 --- a/docs/core/rid-catalog.md +++ b/docs/core/rid-catalog.md @@ -102,7 +102,7 @@ Only common values are listed. For the latest and complete version, see the [run - `win10-arm` - `win10-arm64` -See [Prerequisites for .NET Core on Windows](windows-prerequisites.md) for more information. +See [.NET Core dependencies and requirements](install/dependencies.md?tabs=netcore30&pivots=os-windows) for more information. ## Linux RIDs @@ -120,7 +120,7 @@ Only common values are listed. For the latest and complete version, see the [run - `tizen.4.0.0` - `tizen.5.0.0` -See [Prerequisites for .NET Core on Linux](linux-prerequisites.md) for more information. +See [.NET Core dependencies and requirements](install/dependencies.md?tabs=netcore30&pivots=os-linux) for more information. ## macOS RIDs @@ -139,7 +139,7 @@ macOS RIDs use the older "OSX" branding. Only common values are listed. For the - macOS 10.14 Mojave (.NET Core 1.1 or later versions) - `osx.10.14-x64` -See [Prerequisites for .NET Core on macOS](macos-prerequisites.md) for more information. +See [.NET Core dependencies and requirements](install/dependencies.md?tabs=netcore30&pivots=os-macos) for more information. ## See also diff --git a/docs/core/toc.yml b/docs/core/toc.yml index bdd26ed1d5b89..59684d9decb89 100644 --- a/docs/core/toc.yml +++ b/docs/core/toc.yml @@ -2,6 +2,46 @@ href: index.md - name: About .NET Core href: about.md +- name: Install + items: + - name: Overview + href: install/index.md + - name: Install SDK + href: install/sdk.md + - name: Install runtime + href: install/runtime.md + - name: Supported OS and dependencies + href: install/dependencies.md + - name: How to check .NET Core versions + href: install/how-to-detect-installed-versions.md + - name: Linux package managers + items: + - name: RHEL 7 + href: install/linux-package-manager-rhel7.md + - name: RHEL 8.1 + href: install/linux-package-manager-rhel81.md + - name: Ubuntu 16.04 + href: install/linux-package-manager-ubuntu-1604.md + - name: Ubuntu 18.04 + href: install/linux-package-manager-ubuntu-1804.md + - name: Ubuntu 19.04 + href: install/linux-package-manager-ubuntu-1904.md + - name: Debian 9 + href: install/linux-package-manager-debian9.md + - name: Debian 10 + href: install/linux-package-manager-debian10.md + - name: Fedora 29 + href: install/linux-package-manager-fedora29.md + - name: Fedora 30 + href: install/linux-package-manager-fedora30.md + - name: CentOS 7 + href: install/linux-package-manager-centos7.md + - name: OpenSUSE 15 + href: install/linux-package-manager-opensuse15.md + - name: SLES 12 + href: install/linux-package-manager-sles12.md + - name: SLES 15 + href: install/linux-package-manager-sles15.md - name: Get started href: get-started.md items: @@ -23,12 +63,6 @@ href: tutorials/testing-library-with-visual-studio.md - name: Consume a .NET Standard library in Visual Studio 2017 href: tutorials/consuming-library-with-visual-studio.md -- name: Windows Prerequisites - href: windows-prerequisites.md -- name: macOS Prerequisites - href: macos-prerequisites.md -- name: Linux Prerequisites - href: linux-prerequisites.md - name: What's new in .NET Core items: - name: What's new in .NET Core 3.0 diff --git a/docs/core/tools/using-ci-with-cli.md b/docs/core/tools/using-ci-with-cli.md index baf35df5b4f45..2578c9d1d650c 100644 --- a/docs/core/tools/using-ci-with-cli.md +++ b/docs/core/tools/using-ci-with-cli.md @@ -28,7 +28,7 @@ The installer script is automated to run at the start of the build to fetch and > [!NOTE] > **Azure DevOps Services** > -> When using the installer script, native dependencies aren't installed automatically. You must install the native dependencies if the operating system doesn't have them. For more information, see [Prerequisites for .NET Core on Linux](../linux-prerequisites.md). +> When using the installer script, native dependencies aren't installed automatically. You must install the native dependencies if the operating system doesn't have them. For more information, see [.NET Core dependencies and requirements](../install/dependencies.md?tabs=netcore30&pivots=os-linux). ## CI setup examples diff --git a/docs/core/tutorials/using-on-mac-vs-full-solution.md b/docs/core/tutorials/using-on-mac-vs-full-solution.md index c1eb4f6dcbaf4..aed097cf497db 100644 --- a/docs/core/tutorials/using-on-mac-vs-full-solution.md +++ b/docs/core/tutorials/using-on-mac-vs-full-solution.md @@ -19,11 +19,11 @@ This tutorial shows you how to create an application that accepts a search word ## Prerequisites -- OpenSSL (if running .NET Core 1.1): See the [Prerequisites for .NET Core on Mac](../macos-prerequisites.md) topic. +- OpenSSL (if running .NET Core 1.1): See the [.NET Core dependencies and requirements](../install/dependencies.md?tabs=netcore30&pivots=os-macos) topic. - [.NET Core SDK 1.1 or later](https://dotnet.microsoft.com/download) - [Visual Studio 2017 for Mac](https://visualstudio.microsoft.com/vs/mac/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link) -For more information on prerequisites, see the [Prerequisites for .NET Core on Mac](../macos-prerequisites.md). For the full system requirements of Visual Studio 2017 for Mac, see [Visual Studio 2017 for Mac Product Family System Requirements](/visualstudio/productinfo/vs2017-system-requirements-mac). +For more information on prerequisites, see the [.NET Core dependencies and requirements](../install/dependencies.md?tabs=netcore30&pivots=os-macos). For the full system requirements of Visual Studio 2017 for Mac, see [Visual Studio 2017 for Mac Product Family System Requirements](/visualstudio/productinfo/vs2017-system-requirements-mac). ## Building a library diff --git a/docs/core/tutorials/using-on-mac-vs.md b/docs/core/tutorials/using-on-mac-vs.md index 56c1f5fc5aeef..66b17f2b0d547 100644 --- a/docs/core/tutorials/using-on-mac-vs.md +++ b/docs/core/tutorials/using-on-mac-vs.md @@ -17,7 +17,7 @@ Visual Studio for Mac provides a full-featured Integrated Development Environmen ## Prerequisites -See the [Prerequisites for .NET Core on Mac](../macos-prerequisites.md) topic. +See the [.NET Core dependencies and requirements](../install/dependencies.md?tabs=netcore30&pivots=os-macos) topic. Check the [.NET Core Support](/visualstudio/mac/net-core-support) article to ensure you're using a supported version of .NET Core. diff --git a/docs/core/tutorials/using-with-xplat-cli.md b/docs/core/tutorials/using-with-xplat-cli.md deleted file mode 100644 index a9d05302d4cfc..0000000000000 --- a/docs/core/tutorials/using-with-xplat-cli.md +++ /dev/null @@ -1,170 +0,0 @@ ---- -title: Get started with .NET Core using the CLI -description: A step-by-step tutorial showing how to get started with .NET Core on Windows, Linux, or macOS using the .NET Core command-line interface (CLI). -author: thraka -ms.author: adegeo -ms.date: 08/07/2019 -ms.technology: dotnet-cli -ms.custom: "seodec18" ---- -# Get started with .NET Core on Windows/Linux/macOS using the command line - -This topic will show you how to start developing cross-platforms apps in your machine using the .NET Core CLI tools. - -If you're unfamiliar with the .NET Core CLI toolset, read the [.NET Core SDK overview](../tools/index.md). - -## Prerequisites - -- [.NET Core SDK 2.1](https://dotnet.microsoft.com/download) or later versions. -- A text editor or code editor of your choice. - -## Hello, Console App! - -You can [view or download the sample code](https://github.com/dotnet/samples/tree/master/core/console-apps/HelloMsBuild) from the dotnet/samples GitHub repository. For download instructions, see [Samples and Tutorials](../../samples-and-tutorials/index.md#viewing-and-downloading-samples). - -Open a command prompt and create a folder named *Hello*. Navigate to the folder you created and type the following: - -```dotnetcli -dotnet new console -dotnet run -``` - -Let's do a quick walkthrough: - -1. `dotnet new console` - - [`dotnet new`](../tools/dotnet-new.md) creates an up-to-date *Hello.csproj* project file with the dependencies necessary to build a console app. It also creates a *Program.cs*, a basic file containing the entry point for the application. - - *Hello.csproj*: - - [!code-xml[Hello.csproj](~/samples/core/console-apps/HelloMsBuild/Hello.csproj)] - - The project file specifies everything that's needed to restore dependencies and build the program. - - - The `OutputType` tag specifies that we're building an executable, in other words a console application. - - The `TargetFramework` tag specifies what .NET implementation we're targeting. In an advanced scenario, you can specify multiple target frameworks and build to all those in a single operation. In this tutorial, we'll stick to building only for .NET Core 2.1. - - *Program.cs*: - - [!code-csharp[Program.cs](~/samples/core/console-apps/HelloMsBuild/Program.cs)] - - The program starts by `using System`, which means "bring everything in the `System` namespace into scope for this file". The `System` namespace includes the `Console` class. - - We then define a namespace called `Hello`. You can change this to anything you want. A class named `Program` is defined within that namespace, with a `Main` method that takes an array of strings as its argument. This array contains the list of arguments passed in when the compiled program is called. As it is, this array is not used: all the program is doing is to write "Hello World!" to the console. Later, we'll make changes to the code that will make use of this argument. - - [!INCLUDE[DotNet Restore Note](~/includes/dotnet-restore-note.md)] - - `dotnet new` calls [`dotnet restore`](../tools/dotnet-restore.md) implicitly. `dotnet restore` calls into [NuGet](https://www.nuget.org/) (.NET package manager) to restore the tree of dependencies. NuGet analyzes the *Hello.csproj* file, downloads the dependencies defined in the file (or grabs them from a cache on your machine), and writes the *obj/project.assets.json* file, which is necessary to compile and run the sample. - - > [!IMPORTANT] - > If you're using a .NET Core 1.x version of the SDK, you'll have to call `dotnet restore` yourself after calling `dotnet new`. - -2. `dotnet run` - - [`dotnet run`](../tools/dotnet-run.md) calls [`dotnet build`](../tools/dotnet-build.md) to ensure that the build targets have been built, and then calls `dotnet ` to run the target application. - - ```console - $ dotnet run - Hello World! - ``` - - Alternatively, you can also execute [`dotnet build`](../tools/dotnet-build.md) to compile the code without running the build console applications. This results in a compiled application as a DLL file that can be run with `dotnet bin\Debug\netcoreapp2.1\Hello.dll` on Windows (use `/` for non-Windows systems). You may also specify arguments to the application as you'll see later on the topic. - - ```console - $ dotnet bin\Debug\netcoreapp2.1\Hello.dll - Hello World! - ``` - - As an advanced scenario, it's possible to build the application as a self-contained set of platform-specific files that can be deployed and run to a machine that doesn't necessarily have .NET Core installed. See [.NET Core Application Deployment](../deploying/index.md) for details. - -### Augmenting the program - -Let's change the program a bit. Fibonacci numbers are fun, so let's add that in addition to use the argument to greet the person running the app. - -1. Replace the contents of your *Program.cs* file with the following code: - - [!code-csharp[Fibonacci](../../../samples/core/console-apps/fibonacci-msbuild/Program.cs)] - -2. Execute [`dotnet build`](../tools/dotnet-build.md) to compile the changes. - -3. Run the program passing a parameter to the app: - - ```console - $ dotnet run -- John - Hello John! - Fibonacci Numbers 1-15: - 1: 0 - 2: 1 - 3: 1 - 4: 2 - 5: 3 - 6: 5 - 7: 8 - 8: 13 - 9: 21 - 10: 34 - 11: 55 - 12: 89 - 13: 144 - 14: 233 - 15: 377 - ``` - -And that's it! You can augment *Program.cs* any way you like. - -## Working with multiple files - -Single files are fine for simple one-off programs, but if you're building a more complex app, you're probably going to have multiple source files on your project. -Let's build off of the previous Fibonacci example by caching some Fibonacci values and add some recursive features. - -1. Add a new file inside the *Hello* directory named *FibonacciGenerator.cs* with the following code: - - [!code-csharp[Fibonacci Generator](~/samples/core/console-apps/FibonacciBetterMsBuild/FibonacciGenerator.cs)] - -2. Change the `Main` method in your *Program.cs* file to instantiate the new class and call its method as in the following example: - - [!code-csharp[New Program.cs](~/samples/core/console-apps/FibonacciBetterMsBuild/Program.cs)] - -3. Execute [`dotnet build`](../tools/dotnet-build.md) to compile the changes. - -4. Run your app by executing [`dotnet run`](../tools/dotnet-run.md). The following shows the program output: - - ```console - $ dotnet run - 0 - 1 - 1 - 2 - 3 - 5 - 8 - 13 - 21 - 34 - 55 - 89 - 144 - 233 - 377 - ``` - -## Publish your app - -Once you're ready to distribute your app, use the [`dotnet publish`](../tools/dotnet-publish.md) command to generate the _publish_ folder at _bin\\debug\\netcoreapp2.1\\publish\\_ (use `/` for non-Windows systems). You can distribute the contents of the _publish_ folder to other platforms as long as they've already installed the dotnet runtime. - -You can run your published app with the [dotnet](../tools/dotnet.md) command: - -```console -$ dotnet bin\Debug\netcoreapp2.1\publish\Hello.dll -Hello World! -``` - -## Conclusion - -And that's it! Now, you can start using the basic concepts learned here to create your own programs. - -## See also - -- [Organizing and testing projects with the .NET Core CLI tools](testing-with-cli.md) -- [Publish .NET Core apps with the CLI](../deploying/deploy-with-cli.md) -- [Learn more about app deployment](../deploying/index.md) diff --git a/docs/core/tutorials/vb-with-visual-studio.md b/docs/core/tutorials/vb-with-visual-studio.md index 66bba57565d57..ac9f76241591c 100644 --- a/docs/core/tutorials/vb-with-visual-studio.md +++ b/docs/core/tutorials/vb-with-visual-studio.md @@ -14,7 +14,7 @@ This topic provides a step-by-step introduction to building, debugging, and publ [Visual Studio 2017](https://aka.ms/vsdownload?utm_source=mscom&utm_campaign=msdocs) with the ".NET Core cross-platform development" workload installed. You can develop your app with .NET Core 2.1 or later versions. -For more information, see [Prerequisites for .NET Core on Windows](../windows-prerequisites.md). +For more information, see [.NET Core dependencies and requirements](../install/dependencies.md?tabs=netcore30&pivots=os-windows). ## A simple Hello World application diff --git a/docs/core/tutorials/with-visual-studio.md b/docs/core/tutorials/with-visual-studio.md index 7b173d20c5eca..aad72aceb4292 100644 --- a/docs/core/tutorials/with-visual-studio.md +++ b/docs/core/tutorials/with-visual-studio.md @@ -14,7 +14,7 @@ This article provides a step-by-step introduction to building, debugging, and pu [Visual Studio 2017 or later](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2019) with the ".NET Core cross-platform development" workload installed. You can develop your app with .NET Core 2.1 or later versions. -For more information, see the [Prerequisites for .NET Core on Windows](../windows-prerequisites.md) article. +For more information, see the [.NET Core dependencies and requirements](../install/sdk.md?tabs=netcore30&pivots=os-windows#install-with-visual-studio)article. ## A simple Hello World application diff --git a/docs/core/windows-prerequisites.md b/docs/core/windows-prerequisites.md deleted file mode 100644 index c855699e73aa1..0000000000000 --- a/docs/core/windows-prerequisites.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -title: Prerequisites for .NET Core on Windows -description: Learn what dependencies you need on your Windows machine to develop and run .NET Core applications. -f1_keywords: - - "NETSDK1045" -ms.custom: "updateeachvsrelease" -ms.date: 09/20/2019 ---- - -# Prerequisites for .NET Core on Windows - -This article shows the supported OS versions in order to run .NET Core applications on Windows. The supported OS versions and dependencies that follow apply to the three ways of developing .NET Core apps on Windows: - -* [Command line](./tutorials/using-with-xplat-cli.md) -* [Visual Studio](https://www.visualstudio.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2019) -* [Visual Studio Code](https://code.visualstudio.com/) - -Also, if you're developing on Windows using Visual Studio, the [Prerequisites to develop .NET Core apps with Visual Studio](#prerequisites-to-develop-net-core-apps-with-visual-studio) section goes in more detail about minimum versions supported for .NET Core development. - -## .NET Core supported operating systems - -The following articles have a complete list of .NET Core supported operating systems per version: - -* [.NET Core 3.0](https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md) -* [.NET Core 2.2](https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2-supported-os.md) -* [.NET Core 2.1](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md) - -For download links and more information, see [.NET downloads](https://dotnet.microsoft.com/download) to download the latest version or [.NET downloads archive](https://dotnet.microsoft.com/download/archives#dotnet-core) for older versions. - -## .NET Core dependencies - -[Microsoft Visual C++ 2015 Redistributable Update 3](https://www.microsoft.com/download/details.aspx?id=52685) must be manually installed when: - -* Installing .NET Core with the [installer script](./tools/dotnet-install-script.md). -* Deploying a self-contained .NET Core application. -* Building the product from source. -* Installing .NET Core via a *.zip* file. This can include build/CI/CD servers. - -> [!NOTE] -> **For Windows 8.1 and earlier versions, or Windows Server 2012 R2 and earlier versions:** -> -> Make sure that your Windows installation is up-to-date and includes [KB2999226](https://support.microsoft.com/help/2999226/update-for-universal-c-runtime-in-windows), which can be installed through Windows Update. If you don't have this update installed, you'll see an error like the following when you launch a .NET Core application: `The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.` -> -> **For Windows 7 or Windows Server 2008 R2:** -> -> In addition to KB2999226, make sure you also have [KB2533623](https://support.microsoft.com/help/2533623/microsoft-security-advisory-insecure-library-loading-could-allow-remot) installed. If you don't have this update installed, you'll see an error similar to the following when you launch a .NET Core application: `The library hostfxr.dll was found, but loading it from C:\\hostfxr.dll failed`. - -## Prerequisites to develop .NET Core apps with Visual Studio - -Even though you can use any editor to develop .NET Core applications using the .NET Core SDK, Visual Studio 2017 and later versions provide an integrated development environment for .NET Core apps on Windows. - - - -Each .NET Core version has a minimum version of Visual Studio required. To verify your Visual Studio version: - -* On the **Help** menu, choose **About Microsoft Visual Studio**. -* In the **About Microsoft Visual Studio** dialog, verify the version number. - -The following table lists the minimum version for each SDK: - -| .NET Core SDK version | Visual Studio version | -| --------------------- | ------------------------------------------ | -| 3.0 | Visual Studio 2019 version 16.3 or higher. | -| 2.2 | Visual Studio 2017 version 15.9 or higher. | -| 2.1 | Visual Studio 2017 version 15.7 or higher. | -| 1.x | Visual Studio 2017 version 15.0 or higher. | - - - -# [.NET Core 3.0](#tab/netcore30) - -To develop .NET Core apps in Visual Studio 2019 using the .NET Core 3.0 SDK: - -* [Download and install Visual Studio 2019 version 16.3 or higher](/visualstudio/install/install-visual-studio) and select one of the following workloads that includes the .NET Core SDK, depending on the kind of application you're building: - - * The **.NET Core cross-platform development** workload in the **Other Toolsets** section. - * The **ASP.NET and web development** workload in the **Web & Cloud** section. - * The **NET desktop development** workload in the **Windows** section. - -The following image shows the **.NET Core cross-platform development** workload selected in the Visual Studio UI: - -![Screenshot of Visual Studio 2019 installation with the ".NET Core cross-platform development" workload selected](./media/windows-prerequisites/vs-2019-workloads.jpg) - -Visual Studio 2019 version 16.3 uses .NET Core 3.0 SDK by default after any of these workloads are installed. - -If you want your existing projects to use the latest .NET Core runtime, retarget each existing .NET Core project to .NET Core 3.0 using the following instructions: - -* On the **Project** menu, choose **Properties**. -* In the **Target framework** selection menu, set the value to **.NET Core 3.0**. - -![Screenshot of Visual Studio 2019 Application Project Property with the ".NET Core 3.0" target framework menu item selected](./media/windows-prerequisites/target-dotnet-core-3-0.jpg) - -Once you have Visual Studio configured with .NET Core 3.0 SDK, you can do the following actions: - -* Open, build, and run existing .NET Core 1.x and 2.x projects. -* Retarget .NET Core 1.x and 2.x projects to .NET Core 3.0, build, and run. -* Create new .NET Core 3.0 projects. - -# [.NET Core 2.x](#tab/netcore2x) - -To develop .NET Core apps in Visual Studio 2017 using the .NET Core 2.2 SDK: - -* [Download and install Visual Studio 2019 version 16.3 or higher](/visualstudio/install/install-visual-studio) with the **.NET Core cross-platform development** workload (in the **Other Toolsets** section) selected. -* [Download and install Visual Studio 2017 version 15.9.0 or higher](/visualstudio/install/install-visual-studio) with the **.NET Core cross-platform development** workload (in the **Other Toolsets** section) selected. - -![Screenshot of Visual Studio 2017 installation with the ".NET Core cross-platform development" workload selected](./media/windows-prerequisites/vs-2017-workloads.jpg) - -After the **.NET Core cross-platform development** toolset is installed, Visual Studio usually installs a previous version of the .NET Core SDK. -For example, Visual Studio 2017 version 15.9 uses .NET Core 2.1 SDK by default after the workload is installed. - -To update Visual Studio to use .NET Core 2.2 SDK: - - 1. Install the [.NET Core 2.2 SDK](https://dotnet.microsoft.com/download). - - 1. If you want your project to use the latest .NET Core runtime, retarget each existing or new .NET Core project to .NET Core 2.2 using the following instructions: - - * On the **Project** menu, choose **Properties**. - * In the **Target framework** selection menu, set the value to **.NET Core 2.2**. - -![Screenshot of Visual Studio 2017 Application Project Property with the ".NET Core 2.2" target framework menu item selected](./media/windows-prerequisites/targeting-dotnet-core.jpg) - -Once you have Visual Studio configured with .NET Core 2.2 SDK, you can do the following actions: - -* Open, build, and run existing .NET Core 1.x and 2.x projects. -* Retarget .NET Core 1.x and 2.x projects to .NET Core 2.2, build, and run. -* Create new .NET Core 2.2 projects. - ---- diff --git a/docs/framework/unmanaged-api/profiling/cor-prf-rejit-flags-enumeration.md b/docs/framework/unmanaged-api/profiling/cor-prf-rejit-flags-enumeration.md index dc96ad846331c..46441a31d30b6 100644 --- a/docs/framework/unmanaged-api/profiling/cor-prf-rejit-flags-enumeration.md +++ b/docs/framework/unmanaged-api/profiling/cor-prf-rejit-flags-enumeration.md @@ -37,7 +37,7 @@ typedef enum |`COR_PRF_REJIT_INLINING_CALLBACKS`| Receive `GetFunctionParameters` callbacks for any methods that inline the methods requested to be ReJITted. | ## Requirements - **Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). + **Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-enumerateobjectreferences-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-enumerateobjectreferences-method.md index d058aff195838..f6c75ba69f83b 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-enumerateobjectreferences-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-enumerateobjectreferences-method.md @@ -41,7 +41,7 @@ The `EnumerateObjectReferences` method is similar to [ObjectReferences](../../.. ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-getlohobjectsizethreshold-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-getlohobjectsizethreshold-method.md index c45056e737bf5..c67f748c01cad 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-getlohobjectsizethreshold-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-getlohobjectsizethreshold-method.md @@ -33,7 +33,7 @@ Objects larger than the large object heap threshold will be allocated on the lar ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-interface.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-interface.md index 3ba3a616a3667..938df2eb96978 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-interface.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-interface.md @@ -20,7 +20,7 @@ A subclass of [ICorProfilerInfo9](../../../../docs/framework/unmanaged-api/profi |[ResumeRuntime Method](../../../../docs/framework/unmanaged-api/profiling/icorprofilerinfo10-resumeruntime-method.md)| Resumes the runtime without performing a GC. | ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h **.NET Versions:** [!INCLUDE[net_core_22](../../../../includes/net-core-30-md.md)] diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-isfrozenobject-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-isfrozenobject-method.md index f2c0171140f42..0cae7b2889abb 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-isfrozenobject-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-isfrozenobject-method.md @@ -33,7 +33,7 @@ HRESULT IsFrozenObject( [in] ObjectID objectId, ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-requestrejitwithinliners-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-requestrejitwithinliners-method.md index e4d5fd94003d4..1d54ca709af86 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-requestrejitwithinliners-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-requestrejitwithinliners-method.md @@ -45,7 +45,7 @@ HRESULT RequestReJITWithInliners( [in] DWORD dwRejit ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-resumeruntime-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-resumeruntime-method.md index 3808c93b609b9..dc2ede924c7ef 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-resumeruntime-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-resumeruntime-method.md @@ -24,7 +24,7 @@ HRESULT ResumeRuntime(); ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-suspendruntime-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-suspendruntime-method.md index 7bc15da8ae663..953c9ee76f2a0 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-suspendruntime-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo10-suspendruntime-method.md @@ -24,7 +24,7 @@ HRESULT SuspendRuntime(); ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getcodeinfo4-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getcodeinfo4-method.md index 965b8a9e974bc..894e56e0893c5 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getcodeinfo4-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getcodeinfo4-method.md @@ -54,7 +54,7 @@ Alternatively, you can first call `GetCodeInfo4` with a zero-length `codeInfos` ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getiltonativemapping3-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getiltonativemapping3-method.md index 697680c8ef74f..c38bc503bfa63 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getiltonativemapping3-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getiltonativemapping3-method.md @@ -45,7 +45,7 @@ When tiered compilation is enabled, a method may have more than one native code ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getnativecodestartaddresses-method.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getnativecodestartaddresses-method.md index 141b454ac560b..cd86d5189de57 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getnativecodestartaddresses-method.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-getnativecodestartaddresses-method.md @@ -49,7 +49,7 @@ When tiered compilation is enabled, a function may have more than one native cod ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h diff --git a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-interface.md b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-interface.md index 96e6c37a82c4c..cf752d19484e6 100644 --- a/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-interface.md +++ b/docs/framework/unmanaged-api/profiling/icorprofilerinfo9-interface.md @@ -17,7 +17,7 @@ A subclass of [ICorProfilerInfo8](../../../../docs/framework/unmanaged-api/profi |[GetCodeInfo4 Method](icorprofilerinfo9-getcodeinfo4-method.md)| Given the native code start address, returns the blocks of virtual memory that store this code. | ## Requirements -**Platforms:** See [.NET Core supported operating systems](../../../core/windows-prerequisites.md#net-core-supported-operating-systems). +**Platforms:** See [.NET Core supported operating systems](../../../core/install/dependencies.md?tabs=netcore30&pivots=os-windows). **Header:** CorProf.idl, CorProf.h **.NET Versions:** [!INCLUDE[net_core](../../../../includes/net-core-22-md.md)] diff --git a/docs/visual-basic/toc.yml b/docs/visual-basic/toc.yml index dbec5f8db49d4..1f6f6d11cdf2a 100644 --- a/docs/visual-basic/toc.yml +++ b/docs/visual-basic/toc.yml @@ -970,7 +970,7 @@ - name: Cannot create ActiveX Component href: language-reference/error-messages/cannot-create-activex-component.md - name: Cannot refer to '' because it is a member of the value-typed field '' of class '' which has 'System.MarshalByRefObject' as a base class - href: language-reference/error-messages/30310.md + href: language-reference/error-messages/bc30310.md - name: Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class href: language-reference/error-messages/bc30369.md - name: Can't create necessary temporary file diff --git a/docs/zone-pivot-groups.yml b/docs/zone-pivot-groups.yml new file mode 100644 index 0000000000000..a73bd78d46067 --- /dev/null +++ b/docs/zone-pivot-groups.yml @@ -0,0 +1,13 @@ +# YamlMime:ZonePivotGroups +# GitHub repository = 'dotnet/docs' +groups: + - id: operating-systems-set-one + title: Operating System + prompt: Choose an operating system + pivots: + - id: os-windows + title: Windows + - id: os-linux + title: Linux + - id: os-macos + title: macOS \ No newline at end of file