Difference between revisions of "How to install .NET on Raspberry Pi"

From OPC Labs Knowledge Base
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:.NET]] [[Category:.NET Core]] [[Category:How to]] [[Category:Raspberry Pi]] [[Category:Raspberry Pi OS]]
 +
= Raspberry Pi OS =
 +
Raspberry Pi OS (formerly Raspbian) is based on Debian.
 +
== .NET Core 2.1 ==
 +
Using procedure from [https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install Install the .NET SDK or the .NET Runtime manually -> Manual Install]:
 +
# Start Web browser.
 +
# In the Web browser:
 +
## Visit page [https://dotnet.microsoft.com/download/dotnet-core/2.1 Download .NET Core 2.1].
 +
## Click on the download that you need (look under OS: '''Linux''', Binaries: '''Arm32''').
 +
## On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, the direct URL for .NET Core Runtime 2.1.24 is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
 +
# Start Bash.
 +
# In Bash:
 +
## Using the URL from the clipboard, do <code>wget https://download.visualstudio.microsoft.com/download/pr/e4b1196b-46a7-48c7-81d3-24ac8e385c74/ecf03a67221e8aba56dfb5702faad8a9/dotnet-runtime-2.1.24-linux-arm.tar.gz</code>
 +
## Using just the file name portion of the URL from the clipboard, do <code>mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-2.1.24-linux-arm.tar.gz -C "$HOME/dotnet"</code>
 +
## <code>export DOTNET_ROOT=$HOME/dotnet</code>
 +
## <code>export PATH=$PATH:$HOME/dotnet</code>
  
 +
== .NET Core 3.1 ==
 +
Using procedure from [https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install Install the .NET SDK or the .NET Runtime manually -> Manual Install]:
 +
# Start Web browser.
 +
# In the Web browser:
 +
## Visit page [https://dotnet.microsoft.com/download/dotnet-core/3.1 Download .NET Core 3.1].
 +
## Click on the download that you need (look under OS: '''Linux''', Binaries: '''Arm32''').
 +
## On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, the direct URL for .NET Core Runtime 3.1.11 is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
 +
# Start Bash.
 +
# In Bash:
 +
## Using the URL from the clipboard, do <code>wget https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz</code>
 +
## Using just the file name portion of the URL from the clipboard, do <code>mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-3.1.11-linux-arm.tar.gz -C "$HOME/dotnet"</code>
 +
## <code>export DOTNET_ROOT=$HOME/dotnet</code>
 +
## <code>export PATH=$PATH:$HOME/dotnet</code>
  
Raspberry Pi OS
+
== .NET 5.0 ==
 
+
Using procedure from [https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install Install the .NET SDK or the .NET Runtime manually -> Manual Install]:
.NET Core 3.1
 
 
 
Using procedure from https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install
 
 
 
 
# Start Web browser.  
 
# Start Web browser.  
 
# In the Web browser:
 
# In the Web browser:
## Visit https://dotnet.microsoft.com/download/dotnet-core/3.1 .
+
## Visit page [https://dotnet.microsoft.com/download/dotnet/5.0 Download .NET 5.0].
## Click on the download that you need (look under OS: Linux, Binaries: Arm32).  
+
## Click on the download that you need (look under OS: '''Linux''', Binaries: '''Arm32''').  
## On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, for .NET Core 3.1.11, the direct URL is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
+
## On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, the direct URL for .NET Runtime 5.0.2 is https://download.visualstudio.microsoft.com/download/pr/4e24057a-80d3-4de8-bbab-f337f8cdf56f/6c4775b4dee44be13355ca74b86797cf/dotnet-runtime-5.0.2-linux-arm.tar.gz .
 
# Start Bash.
 
# Start Bash.
 
# In Bash:  
 
# In Bash:  
## {{Style=keyboard|wget https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz}}
+
## Using the URL from the clipboard, do <code>wget https://download.visualstudio.microsoft.com/download/pr/4e24057a-80d3-4de8-bbab-f337f8cdf56f/6c4775b4dee44be13355ca74b86797cf/dotnet-runtime-5.0.2-linux-arm.tar.gz</code>
## {{Style=keyboard|mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-3.1.11-linux-arm.tar.gz -C "$HOME/dotnet"}}
+
## Using just the file name portion of the URL from the clipboard, do <code>mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-5.0.2-linux-arm.tar.gz -C "$HOME/dotnet"</code>
 +
## <code>export DOTNET_ROOT=$HOME/dotnet</code>
 +
## <code>export PATH=$PATH:$HOME/dotnet</code>

Latest revision as of 10:16, 27 January 2021

Raspberry Pi OS

Raspberry Pi OS (formerly Raspbian) is based on Debian.

.NET Core 2.1

Using procedure from Install the .NET SDK or the .NET Runtime manually -> Manual Install:

  1. Start Web browser.
  2. In the Web browser:
    1. Visit page Download .NET Core 2.1.
    2. Click on the download that you need (look under OS: Linux, Binaries: Arm32).
    3. On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, the direct URL for .NET Core Runtime 2.1.24 is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
  3. Start Bash.
  4. In Bash:
    1. Using the URL from the clipboard, do wget https://download.visualstudio.microsoft.com/download/pr/e4b1196b-46a7-48c7-81d3-24ac8e385c74/ecf03a67221e8aba56dfb5702faad8a9/dotnet-runtime-2.1.24-linux-arm.tar.gz
    2. Using just the file name portion of the URL from the clipboard, do mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-2.1.24-linux-arm.tar.gz -C "$HOME/dotnet"
    3. export DOTNET_ROOT=$HOME/dotnet
    4. export PATH=$PATH:$HOME/dotnet

.NET Core 3.1

Using procedure from Install the .NET SDK or the .NET Runtime manually -> Manual Install:

  1. Start Web browser.
  2. In the Web browser:
    1. Visit page Download .NET Core 3.1.
    2. Click on the download that you need (look under OS: Linux, Binaries: Arm32).
    3. On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, the direct URL for .NET Core Runtime 3.1.11 is https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz .
  3. Start Bash.
  4. In Bash:
    1. Using the URL from the clipboard, do wget https://download.visualstudio.microsoft.com/download/pr/a119100f-e7b3-4c30-a91a-d6ce6b02b51a/196c932070dd023726664a9789e4dc83/dotnet-runtime-3.1.11-linux-arm.tar.gz
    2. Using just the file name portion of the URL from the clipboard, do mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-3.1.11-linux-arm.tar.gz -C "$HOME/dotnet"
    3. export DOTNET_ROOT=$HOME/dotnet
    4. export PATH=$PATH:$HOME/dotnet

.NET 5.0

Using procedure from Install the .NET SDK or the .NET Runtime manually -> Manual Install:

  1. Start Web browser.
  2. In the Web browser:
    1. Visit page Download .NET 5.0.
    2. Click on the download that you need (look under OS: Linux, Binaries: Arm32).
    3. On the download page, copy the direct URL to the clipboard (ignore or cancel the automatic dowload). For example, the direct URL for .NET Runtime 5.0.2 is https://download.visualstudio.microsoft.com/download/pr/4e24057a-80d3-4de8-bbab-f337f8cdf56f/6c4775b4dee44be13355ca74b86797cf/dotnet-runtime-5.0.2-linux-arm.tar.gz .
  3. Start Bash.
  4. In Bash:
    1. Using the URL from the clipboard, do wget https://download.visualstudio.microsoft.com/download/pr/4e24057a-80d3-4de8-bbab-f337f8cdf56f/6c4775b4dee44be13355ca74b86797cf/dotnet-runtime-5.0.2-linux-arm.tar.gz
    2. Using just the file name portion of the URL from the clipboard, do mkdir -p "$HOME/dotnet" && tar zxf dotnet-runtime-5.0.2-linux-arm.tar.gz -C "$HOME/dotnet"
    3. export DOTNET_ROOT=$HOME/dotnet
    4. export PATH=$PATH:$HOME/dotnet