.Net Core 发布问题

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

.Net Core 发布问题_第1张图片

下载后,根据系统选择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

.Net Core 发布问题_第2张图片

 

你可能感兴趣的:(.Net,Core)