我们正在更新一个项目,该项目使用Azure工具发布到云服务,而该服务将通过Visual Studio 2017中的发布发布到应用程序服务。
通过Azure工具,我们能够在.csdef VirtualApplicaton和VirtualDirectory中进行定义,以根据需要映射项目。但是找不到任何可以实现的功能,以便发布到应用程序服务。
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="Azure.Web.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
<WebRole name="Azure.Web" vmsize="Small">
<Sites>
<Site name="Web">
<VirtualDirectory name="backendprop" physicalDirectory="../../../PropertySystem/backendprop/">
<VirtualApplication name="v1" physicalDirectory="../../../../Published/PropertySystem/Backend/v1/" />
<VirtualApplication name="v1.1" physicalDirectory="../../../../Published/PropertySystem/Backend/v1.1/" />
<VirtualApplication name="v1.2" physicalDirectory="../../../../Published/PropertySystem/Backend/v1.2/" />
</VirtualDirectory>
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="80" />
</Endpoints>
<Imports>
<Import moduleName="RemoteAccess" />
<Import moduleName="RemoteForwarder" />
</Imports>
<ConfigurationSettings>
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" />
<Setting name="APPINSIGHTS_INSTRUMENTATIONKEY" />
</ConfigurationSettings>
</WebRole>
</ServiceDefinition>
我们要从本地的“已发布”文件夹合并,然后将它们发布到backprop之下的新文件夹中,例如以前使用的ServiceDefeniton.csdef。