Net Core 学习入门(二)---------在IIs部署第一个netCore网站

 使用vs创建一项目,选择iis、ftp部署发布文件。

 在官网下载netcore runtime 文件,并安装。

  在iis创建网站,选择无托管代码,完成发布。

  发布完成后,发现生成的webconfig是这种的,打开网站的处理程序映射发现多了一个AspNetCoreModule处理程序,说明

  netcore实在AspNetCoreModule下进行托管运行的。



<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="dotnet" arguments=".\Core.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
  </system.webServer>
</configuration>
<!--ProjectGuid: 2c1acc0a-016d-4dcd-8bcf-491689433556-->
  

猜你喜欢

转载自blog.csdn.net/weixin_41609327/article/details/80766074