问题描述
在另一台开发人员机器上将我的网络应用程序的 targetFramework 从 dotnet-core-2.2
升级到 dotnet-core-3.1.2
后,我们收到以下错误
After upgrading targetFramework for my web app from dotnet-core-2.2
to dotnet-core-3.1.2
on another developer machine we are getting following error
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.3' was not found.
- No frameworks were found.
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.3&arch=x64&rid=win10-x64
我们尝试了几种方法来解决这个问题
We have tried several approaches to solve the issue
- 从指定链接下载并安装 dotnet 内核出错
- 从链接下载运行时 https://dotnet.microsoft.com/download/dotnet-core/3.1
- 卸载了 3.1.2 或 3.1.3 以外的其他 dotnet 核心框架版本
我们仍然面临同样的问题,请指导我解决此问题.
still we are facing the same issue, please guide me to troubleshoot this issue.
推荐答案
我在 上发布了同样的问题github dotnet 问题页面,用户 vitek karas 向我提供了 x64 运行时 C:ProgramFilesdotnetsharedMicrosoft.AspNetCore.App3.1.3
文件夹丢失的线索.
I have posted same question on github dotnet issues page, the user vitek karas provided me the lead that x64 runtime C:ProgramFilesdotnetsharedMicrosoft.AspNetCore.App3.1.3
folder was missing.
然后我尝试重新安装 SDK 3.1.201 仍然缺少文件夹.
Then I tried reinstalling SDK 3.1.201 still folder was missing.
我也试过安装 aspnetcore-runtime-3.1.3 X64 仍然缺少文件夹.
I also tried install aspnetcore-runtime-3.1.3 X64 still folder was missing.
最后我下载了 dotnet-sdk-3.1.201-win-x64.zip 并从 zip 手动复制 Microsoft.AspNetCore.App3.1.3
文件夹文件到 C:ProgramFilesdotnetsharedMicrosoft.AspNetCore.App3.1.3
然后我的 asp.net 核心应用程序开始工作.
finally I have downloaded dotnet-sdk-3.1.201-win-x64.zip and copied Microsoft.AspNetCore.App3.1.3
folder manually from the zip file to C:ProgramFilesdotnetsharedMicrosoft.AspNetCore.App3.1.3
then my asp.net core application started working .
这篇关于未找到框架“Microsoft.AspNetCore.App",版本“3.1.3"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!