.net core运行失败,后来在csproj中加入
<PropertyGroup> <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest> </PropertyGroup>
重新发布运行即可。