. net core 项目创建和发布

1、发布和部署到IIS

https://www.cnblogs.com/loverwangshan/p/11284169.html

https://www.cnblogs.com/wangjieguang/p/core-iis.html

可能出现的错误:

HTTP 错误 500.19 - Internal Server Error

原因:可能是AspNetCoreModule没有安装

IIS部署Asp.Net Core 项目运行时报错,处理程序“aspNetCore”在其模块列表中有一个错误模块“AspNetCoreModuleV2"

AspNetCoreModule模块版本要与ASP.Net Core运行时版本一致。

参考:https://www.cnblogs.com/lxhbky/p/10677687.html

带捆绑AspNetCoreModule运行时下载地址

https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-aspnetcore-3.1.5-windows-hosting-bundle-installer

2、.NET Core项目部署到linux(Centos7)

https://blog.csdn.net/wuyu0920/article/details/81078092

https://www.cnblogs.com/hulizhong/p/10713504.html

https://www.cnblogs.com/q149072205/p/11541693.html 创建service 文件

(1)、将.net core 发布的项目整体拷贝到linux 根目录中 var下面

打开终端窗口,输入命令:dotnet 你项目的名称

例如:dotnet MyFirstcCoreWeb.dll

端口防火墙设置:

https://www.cnblogs.com/jayjiang/p/12610675.html

 3、.net core 商城项目案例

https://github.com/dotnet-architecture/eShopOnContainers

ABP框架:https://www.cnblogs.com/wuhuacong/p/10919020.html

原文地址:https://www.cnblogs.com/mojiejushi/p/13234111.html