好的,所以我曾经能够在项目属性对话框中更改SSL端口号,但在asp.net 5 RC1更新之后,SSL字段是只读的:
当我尝试直接编辑.xproj时,它会忽略SSLPort值:
<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
<DevelopmentServerPort>17204</DevelopmentServerPort>
<SSLPort>44303</SSLPort>
</PropertyGroup>
Run Code Online (Sandbox Code Playgroud)
当我更改绑定并启动我的项目时,它还会将我的应用程序主机配置文件($ [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>
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?Visual Studio从哪里获取此值,以及如何更改它?