Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I resolved this by installing Microsoft's dotnet-sdk-8.0 instead of Ubuntu's dotnet-sdk-6.0. Here's a loose summary of Microsoft's instructions. Remove existing dotnet packages: sudo apt remo...
Answer
#2: Post edited
- I resolved this by installing Microsoft's `dotnet-sdk-8.0` instead of Ubuntu's `dotnet-sdk-6.0`. Here's a loose summary of [Microsoft's instructions](https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#register-the-microsoft-package-repository).
- 1. Remove existing dotnet packages:
- ```
- sudo apt remove 'dotnet*' 'aspnet*' 'netstandard*'
- ```
2. Deprioritize the Ubuntu packages by creating `/etc/apt/preferences.d/microsoft-dotnet` containing the following:- ```
- Package: dotnet* aspnet* netstandard*
- Pin: origin "archive.ubuntu.com"
- Pin-Priority: -10
- ```
- 3. Add the Microsoft repo:
- ```
- sudo apt-add-repository https://packages.microsoft.com/ubuntu/22.04/prod
- ```
- 4. Install the .NET 8 SDK:
- ```
- sudo apt update
- sudo apt install dotnet-sdk-8.0
- ```
- I resolved this by installing Microsoft's `dotnet-sdk-8.0` instead of Ubuntu's `dotnet-sdk-6.0`. Here's a loose summary of [Microsoft's instructions](https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#register-the-microsoft-package-repository).
- 1. Remove existing dotnet packages:
- ```
- sudo apt remove 'dotnet*' 'aspnet*' 'netstandard*'
- ```
- 2. Deprioritize the Ubuntu packages by creating a file in `/etc/apt/preferences.d/` containing the following:
- ```
- Package: dotnet* aspnet* netstandard*
- Pin: origin "archive.ubuntu.com"
- Pin-Priority: -10
- ```
- 3. Add the Microsoft repo:
- ```
- sudo apt-add-repository https://packages.microsoft.com/ubuntu/22.04/prod
- ```
- 4. Install the .NET 8 SDK:
- ```
- sudo apt update
- sudo apt install dotnet-sdk-8.0
- ```
#1: Initial revision
I resolved this by installing Microsoft's `dotnet-sdk-8.0` instead of Ubuntu's `dotnet-sdk-6.0`. Here's a loose summary of [Microsoft's instructions](https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#register-the-microsoft-package-repository). 1. Remove existing dotnet packages: ``` sudo apt remove 'dotnet*' 'aspnet*' 'netstandard*' ``` 2. Deprioritize the Ubuntu packages by creating `/etc/apt/preferences.d/microsoft-dotnet` containing the following: ``` Package: dotnet* aspnet* netstandard* Pin: origin "archive.ubuntu.com" Pin-Priority: -10 ``` 3. Add the Microsoft repo: ``` sudo apt-add-repository https://packages.microsoft.com/ubuntu/22.04/prod ``` 4. Install the .NET 8 SDK: ``` sudo apt update sudo apt install dotnet-sdk-8.0 ```