1、在使用cmd命令启动发布 .Net Core 时,提示“找不到 api-ms-win-crt-runtime-l1-1-0.dll”
此问题需要下载安装vc_redist
vc_redist 下载:https://www.microsoft.com/en-us/download/details.aspx?id=48145

下载后,根据系统选择64还是32的安装包,安装完成后,再执行dotnet xxxx.dll命令,就可以了
2、在发布.Net Core 程序时,出现如下问题
It was not possible to find any compatible framework version
The specified framework ‘Microsoft.NETCore.App’, version ‘2.1.1’ was not found.
- Check application dependencies and target a framework version installed at:
- Alternatively, install the framework version ‘2.1.1’.
此问题是因为安装的.net core SDK的安装包的版本与程序中的.net core版本不兼容,重新到管网下载了最新的SDK安装包,就可以了
下载:https://dotnet.microsoft.com/download

本文介绍了解决在发布和运行.NetCore程序时遇到的两个常见问题:一是缺失api-ms-win-crt-runtime-l1-1-0.dll文件,解决方法是安装相应的VC Redistributable;二是指定的.NET Core框架版本未找到,需要确保安装了兼容的.NET Core SDK版本。
6356

被折叠的 条评论
为什么被折叠?



