Saya menggunakan Visual Studio 2019 Versi 16.3.7. Saya menganggap itu adalah pembaruan terbaru.
Ketika saya mencoba untuk mengkompilasi aplikasi konsol .NET Core 2.2 dasar:
... Saya mendapatkan kesalahan berikut:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found.
- The following frameworks were found:
1.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.11 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.12 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
3.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The .NET Core frameworks can be found at:
- https://aka.ms/dotnet-download .
Pemahaman saya adalah bahwa .NET Core 3.0 kompatibel ke belakang. Mengapa pemasang Visual Studio menginstal semua versi .NET Core kecuali 2.2? Bagaimana saya mengatasi masalah ini?