Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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

66%
+2 −0
Q&A CS8032 analyzer warnings in empty EF Core project in Rider

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...

posted 12mo ago by Kevin Krumwiede‭  ·  edited 12mo ago by Kevin Krumwiede‭

Answer
#2: Post edited by user avatar Kevin Krumwiede‭ · 2023-12-10T00:29:04Z (12 months ago)
  • 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 by user avatar Kevin Krumwiede‭ · 2023-12-10T00:27:55Z (12 months ago)
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
```