问题描述
在另一台开发人员机器上将我的Web应用程序的targetFramework从 dotnet-core-2.2
升级到 dotnet-core-3.1.2
后,我们遇到以下错误
找不到任何兼容的框架版本找不到框架"Microsoft.AspNetCore.App"版本"3.1.3".-未找到框架.您可以通过安装指定的框架和/或SDK来解决该问题.可以在以下位置找到指定的框架:-https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.3&arch=x64&rid=win10-x64
我们尝试了几种解决问题的方法
- 错误地从指定的链接下载并安装了dotnet核心
- 从链接 https://dotnet.microsoft.com/download/dotnet下载的运行时-core/3.1
- 卸载了除3.1.2或3.1.3之外的其他dotnet核心框架版本
我们仍然面临相同的问题,请指导我解决此问题.
我在github dotnet问题页面,用户vitek karas向我提供了x64运行时 C:\ ProgramFiles \ dotnet \ shared \ Microsoft.AspNetCore.App \ 3.1.3
文件夹丢失的线索./p>
然后我尝试重新安装 SDK 3.1.201 仍然缺少文件夹.
我还尝试安装 aspnetcore-runtime-3.1.3 X64 仍然缺少文件夹.
最后我已经下载了 dotnet-sdk-3.1.201-win-x64.zip 并从zip中手动复制 Microsoft.AspNetCore.App \ 3.1.3
文件夹文件到 C:\ ProgramFiles \ dotnet \ shared \ Microsoft.AspNetCore.App \ 3.1.3
,然后我的asp.net核心应用程序开始工作.
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
- Downloaded and install the dotnet core from specified link in error
- Downloaded runtime from the link https://dotnet.microsoft.com/download/dotnet-core/3.1
- Uninstalled the other dotnet core framework version other than 3.1.2 or 3.1.3
still we are facing the same issue, please guide me to troubleshoot this issue.
I have posted same question on github dotnet issues page, the user vitek karas provided me the lead that x64 runtime C:\ProgramFiles\dotnet\shared\Microsoft.AspNetCore.App\3.1.3
folder was missing.
Then I tried reinstalling SDK 3.1.201 still folder was missing.
I also tried install aspnetcore-runtime-3.1.3 X64 still folder was missing.
finally I have downloaded dotnet-sdk-3.1.201-win-x64.zip and copied Microsoft.AspNetCore.App\3.1.3
folder manually from the zip file to C:\ProgramFiles\dotnet\shared\Microsoft.AspNetCore.App\3.1.3
then my asp.net core application started working .
这篇关于找不到框架'Microsoft.AspNetCore.App'版本'3.1.3'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!