dotnet / dotnet/vscode-dotnet-runtime

.Net install tool installs dotnet sdk version 7.0.10 while I have version 7.0.110

Open
#1,234 7 comments 1 reaction 0 assignees View on GitHub
client:csharp
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

.Net install tool installs dotnet sdk version 7.0.10 while I have version 7.0.110.
Here is my `dotnet --info` result:
```
.NET SDK:
Version: 7.0.110
Commit: ba920f88ac

Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/sdk/7.0.110/

Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4

.NET SDKs installed:
6.0.121 [/usr/lib/dotnet/sdk]
7.0.110 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.21 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.21 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

```
Here is how I installed dotnet... my bash script for install:
```
##*************************** dotNet Core
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
# Get Ubuntu version
declare repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'; fi)
# Download Microsoft signing key and repository
wget https://packages.microsoft.com/config/ubuntu/$repo_version/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# Install Microsoft signing key and repository
sudo dpkg -i packages-microsoft-prod.deb
# Clean up
rm packages-microsoft-prod.deb
# Update packages
sudo apt update
# https://github.com/dotnet/core/issues/7699#issuecomment-1452473797
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-package-mixup?pivots=os-linux-ubuntu#whats-going-on
sudo sh -c "cat > /etc/apt/preferences.d/dotnet <<'EOF'
Package: dotnet*
Pin: origin packages.microsoft.com
Pin-Priority: -10
EOF"
sudo sh -c "cat > /etc/apt/preferences.d/aspnet <<'EOF'
Package: aspnet*
Pin: origin packages.microsoft.com
Pin-Priority: -10
EOF"
sudo sh -c "cat > /etc/apt/preferences.d/netstandard <<'EOF'
Package: netstandard*
Pin: origin packages.microsoft.com
Pin-Priority: -10
EOF"
sudo apt update
sudo apt install -y aspnetcore-runtime-6.0 dotnet-runtime-6.0 dotnet-sdk-6.0
sudo apt install -y aspnetcore-runtime-7.0 dotnet-runtime-7.0 dotnet-sdk-7.0
##***************************
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.