It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.5' was not found.
- Check application dependencies and target a framework version installed at:
E:\Project\Code.Creater\build_win_x64\
- Installing .NET Core prerequisites might help resolve this problem:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
这意思是2.1.5的版本未找到,可是,采用的2.1.403的sdk和2.1.4运行时开发的项目发布后为什么会指定为2.1.5的版本的运行时呢?请大佬指教。
另外,到官方下载并安装了.net core 的2.1.5的运行时,但是重新生成后仍然报这个错误。这是比较诡异了。不知道为啥了。
当前sdk和runtime版本如下:

大家有没有遇到这个问题,来说说解决方案啊。