web.config需要增加节点“ASPNETCORE_ENVIRONMENT”
<aspNetCore processPath="dotnet" arguments=".\testweb.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" >
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
实际上,这个是swagger注入的时候配置的,默认的话 只在Development显示,注入的时候可以修改
标签:显示,IIS,netcore,托管,404,swagger From: https://www.cnblogs.com/kobewang/p/17115853.html