【发布时间】:2015-11-23 20:57:08
【问题描述】:
好的,所以我以前可以在项目属性对话框中更改 SSL 端口号,但是在 asp.net 5 RC1 更新后,SSL 字段是只读的:
当我尝试直接编辑 .xproj 时,它会忽略 SSLPort 值:
<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
<DevelopmentServerPort>17204</DevelopmentServerPort>
<SSLPort>44303</SSLPort>
</PropertyGroup>
当我更改绑定并启动我的项目时,它还会将我的应用程序主机配置文件 ($[solutionDir].vs\config\applicationhost.config) 中的端口重置为原始值。
<site name="WebApplication1" id="8">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\WebApplication1\wwwroot" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:17833:localhost" />
<binding protocol="https" bindingInformation="*:44303:localhost" />
</bindings>
</site>
什么给了? Visual Studio 是从哪里获得这个值的,我该如何改变它?
【问题讨论】:
标签: asp.net ssl asp.net-core