1. 程式人生 > >.net core webapi發布

.net core webapi發布

free oid ref blog 發布 代碼段 pro 復制 bapi

地址:https://www.cnblogs.com/laozhang-is-phi/p/9565227.html#autoid-5-1-0

地址2:https://www.cnblogs.com/freeliver54/p/6879696.html

iis問題:

地址:http://123.206.33.109:7090/.NetCore

遇到的問題:(An error occurred while starting the application.)

1.xml文件

解決:在xxx.csproj中添加以下代碼段

<PropertyGroup>
  <GenerateDocumentationFile>true</GenerateDocumentationFile>

</PropertyGroup>

技術分享圖片

2.日誌問題

節點:替換web.config文件中以下節點

<aspNetCore processPath="dotnet" arguments=".\appAPI.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />

新建logs文件夾

3.解耦問題

復制解耦的dll文件即可

.net core webapi發布