Search code examples
c#.netasp.net-core.net-framework-version

The framework 'Microsoft.AspNetCore.App', version '3.1.0' (x64) was not found


I face this issue in visual studio 2022 and i use dotnet core 3.1 netcoreapp3.1 enter image description here


Solution

    1. In Visual Studio Installer, choose modify

    enter image description here

    2.In Individual components, choose .NET Core 3.1 Runtime, and modify

    enter image description here

    enter image description here