.NET 8: package is not compatible with net8.0 (.NETCoreApp,Version=v8.0)

After cloning a repo, I’ve failing to build the solution getting build errors regarding some Nuget packages. Here’s a list:

  • error NU1202: Package Microsoft.Graph 5.49.0 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package Microsoft.Graph 5.49.0
    does not support any target frameworks.
  • error NU1202: Package Microsoft.Graph.Core 3.1.10 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package Microsoft.Graph.Core
    3.1.10 does not support any target frameworks.
  • error NU1202: Package Microsoft.Kiota.Abstractions 1.8.0 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package
    Microsoft.Kiota.Abstractions 1.8.0 does not support any target
    frameworks.
  • error NU1202: Package Microsoft.Kiota.Authentication.Azure 1.1.4 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package
    Microsoft.Kiota.Authentication.Azure 1.1.4 does not support any
    target frameworks.
  • error NU1202: Package Microsoft.Kiota.Http.HttpClientLibrary 1.3.8 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package
    Microsoft.Kiota.Http.HttpClientLibrary 1.3.8 does not support any
    target frameworks.
  • error NU1202: Package Microsoft.Kiota.Serialization.Form 1.1.5 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package
    Microsoft.Kiota.Serialization.Form 1.1.5 does not support any target
    frameworks.
  • error NU1202: Package Microsoft.Kiota.Serialization.Json 1.2.0 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package
    Microsoft.Kiota.Serialization.Json 1.2.0 does not support any target
    frameworks.
  • error NU1202: Package Microsoft.Kiota.Serialization.Multipart 1.1.3 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package
    Microsoft.Kiota.Serialization.Multipart 1.1.3 does not support any
    target frameworks.
  • error NU1202: Package Microsoft.Kiota.Serialization.Text 1.1.4 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package
    Microsoft.Kiota.Serialization.Text 1.1.4 does not support any target
    frameworks.

What I’ve tried so far (not necesairally in that order):
Clean the solution (manually as well)
Cleaning Nuget cache
Repair Visual Studio (2022)
Reinstalling Visual Studio (2022)
Reinstalling .NET 8

but I am always get those build errors.

At some point I even got this error message but I cannot reproduce it anymore.

NU1202: Package Microsoft.IdentityModel.Abstractions 7.4.1 is not
compatible with net8.0-windows7.0 (.NETCoreApp,Version=v8.0). Package
Microsoft.IdentityModel.Abstractions 7.4.1 does not support any target
frameworks.

Notice the windows7 in the last one.

Is there anyone that experienced this before? Why can’t I build the project?

Here’s the output, in case it’s helpful, from the dotnet --info command.

.NET SDK:
 Version:           8.0.204
 Commit:            c338c7548c
 Workload version:  8.0.200-manifests.7d36c14f

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22631
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:Program Filesdotnetsdk8.0.204

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.4
  Architecture: x64
  Commit:       2d7eea2529

.NET SDKs installed:
  8.0.204 [C:Program Filesdotnetsdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.4 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.4 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
  Microsoft.WindowsDesktop.App 8.0.4 [C:Program FilesdotnetsharedMicrosoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:Program Files (x86)dotnet]
    registered at [HKLMSOFTWAREdotnetSetupInstalledVersionsx86InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật