在我安装了最新的 Azure SDK for .Net - 2012 年 10 月之后,我无法更改ServiceDefinition.csdef
文件。
B'cos 我需要注释掉这一<!--<Binding name="HttpsIn" endpointName="HttpsIn" hostHeader="www.pawloyalty.com" />-->
行。
编译后它给出了下面提到的消息。即使消息说文件已在源编辑器之外进行了修改。实际上我在源代码编辑器中做了(withing vs 2010)。
ServiceDefinition.csdef文件如下所示
<?xml version="1.0" encoding="utf-8"?>
<!--
**********************************************************************************************
This file was generated by a tool from the project file: ServiceDefinition.csdef
Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.
**********************************************************************************************
-->
<ServiceDefinition name="PawLoyalty.Web.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8">
<WebRole name="PawLoyalty.Web" vmsize="Medium">
<Startup priority="-2">
<Task commandLine="startuptasks/settime.cmd" executionContext="elevated" taskType="simple" />
<Task commandLine="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe install" executionContext="elevated" taskType="simple" />
<Task commandLine="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe install" executionContext="elevated" taskType="simple" />
</Startup>
<Sites>
<Site name="Web">
<Bindings>
<Binding name="HttpIn" endpointName="HttpIn" hostHeader="www.pawloyalty.com" />
<Binding name="HttpsIn" endpointName="HttpsIn" hostHeader="www.pawloyalty.com" />
</Bindings>
</Site>
</Sites>
<ConfigurationSettings>
<Setting name="Blob" />
<Setting name="CDN" />
<Setting name="ConnectionString" />
<Setting name="Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel" />
</ConfigurationSettings>
<Endpoints>
<InputEndpoint name="HttpIn" protocol="http" port="80" />
</Endpoints>
<Certificates></Certificates>
<Imports>
<Import moduleName="Diagnostics" />
<Import moduleName="RemoteAccess" />
<Import moduleName="RemoteForwarder" />
<Import moduleName="Caching" />
</Imports>
<LocalResources>
<LocalStorage name="ExcelStorage" cleanOnRoleRecycle="false" sizeInMB="250" />
<LocalStorage name="Microsoft.WindowsAzure.Plugins.Caching.FileStore" sizeInMB="1000" cleanOnRoleRecycle="false" />
<LocalStorage name="DiagnosticStore" sizeInMB="20000" cleanOnRoleRecycle="false" />
</LocalResources>
</WebRole>
</ServiceDefinition>
为什么?
如何更改 ServiceDefinition.csdef
文件?