TelegramBots / Telegram.Bot

.NET Client for Telegram Bot API
https://telegrambots.github.io/book
MIT License
3.07k stars 677 forks source link

Project is not compatible with net8.0 (.NETCoreApp,Version=v8.0) #1373

Open santo998 opened 2 months ago

santo998 commented 2 months ago

My .NET 8.0 project, suddenly started giving the error in the title.

Steps to reproduce

Install the Nuget package under .NET 8.0

Expected behavior

The package gets installed

Actual behavior

The package doesn't get installed

Environment data

NuGet Package Version: 19.0.0

.NET Version: .NET 8.0

IDE: VS 2022

App: Console app

Fedorus commented 2 months ago

Remove ESET antivirus

santo998 commented 2 months ago

Remove ESET antivirus

I have Kaspersky free AV, but this also happened in my home pc, where I don't have AV at all (other than Windows Defender)

santo998 commented 2 months ago

Here is an screenshot of the error: Screenshot 2024-04-10 124056

My .csproj has this tag: <TargetFramework>net8.0</TargetFramework>

I have Visual Studio 2022 Professional latest version (17.9.6)

santo998 commented 1 month ago

Any update on this?

tuscen commented 1 month ago

You’re issue can’t be replicated

turric4n commented 1 month ago

I have the same problem using my corporate computer (were we have Eset), switching to my home computer fixed things up.

santo998 commented 1 month ago

I have the same problem using my corporate computer (were we have Eset), switching to my home computer fixed things up.

I don't have ESET, but I have Kaspersky.

I tried disabling it and building the project, but it didn't work.

Also, I have another PC without AV at all, and it builds there.

I think my issue can be solved in one of two ways: 1) Maybe someone has a .NET troubleshot guide with steps I missed. Like, after disabling my AV, cleaning Nuget cache, cleaning the project, rebuilding, etc.

2) Maybe my issue isn't AV related, but .NET config (I had VS 2019 installed, now I have VS 2022). I don't know... Maybe workloads, .NET SDK path, etc.