Add a publish profile to push the API to Azure

This commit is contained in:
Sébastien André
2019-11-10 18:22:46 +01:00
parent 428964666b
commit 3f1d648fa9
4 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<ResourceId>/subscriptions/058cb80d-0d13-49de-b50e-d6116c515e64/resourcegroups/skydiveLogsApiResourceGroup/providers/Microsoft.Web/sites/skydiveLogsApi</ResourceId>
<ResourceGroup>skydiveLogsApiResourceGroup</ResourceGroup>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>https://skydivelogsapi.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<TargetFramework>netcoreapp2.2</TargetFramework>
<ProjectGuid>0ac70cc2-ce52-4cd9-89d6-077800574360</ProjectGuid>
<SelfContained>false</SelfContained>
<_IsPortable>true</_IsPortable>
<MSDeployServiceURL>skydivelogsapi.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>skydiveLogsApi</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$skydiveLogsApi</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
<InstallAspNetCoreSiteExtension>False</InstallAspNetCoreSiteExtension>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAwvlesMaokUSt3YE6sTn+QwAAAAACAAAAAAAQZgAAAAEAACAAAAC/3Go48bSD5fcsHKrLHXzqWNAG+EBNxcla/1LMB4Hx3QAAAAAOgAAAAAIAACAAAAB/iKCgL79DVijbJCuqkcld4yaWDcfL8LYNsEbNFu2Wb4AAAABVvUH8OPJuy0ohiDM3Kb0e2AIy6igGNqqFbM0/WFw5O9efvMaaRmmDYGxoiKdspm/sCvpDtjrWR45KU823HhI0cxxPDefsTX93YFOPhjgeeEiJask2ggE+duXd1FMuDrBmV577yknwTZrZkqwsVNI9ofHuBwRMOQfnr7UXJZ1bIkAAAAAzV4bgsbl/D32O2lBfWHiQ0jwYHtR2YVLFG/nNL6SbYxYSMpBi/MMmvtuEmOjWSCqCrwsNCwAoHDYap4mRJspQ</EncryptedPassword>
</PropertyGroup>
</Project>

View File

@@ -4,8 +4,19 @@
<TargetFramework>netcoreapp2.2</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<RootNamespace>skydiveLogs_api</RootNamespace>
<UserSecretsId>9d7d268e-ee4d-43a2-a9b7-5b00b516f6f8</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<None Remove="Data\MyData.db" />
</ItemGroup>
<ItemGroup>
<Content Include="Data\MyData.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="9.0.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />

View File

@@ -9,5 +9,6 @@
<WebStackScaffolding_IsReferencingScriptLibrariesSelected>True</WebStackScaffolding_IsReferencingScriptLibrariesSelected>
<WebStackScaffolding_LayoutPageFile />
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
<NameOfLastUsedPublishProfile>skydiveLogsApi - Web Deploy</NameOfLastUsedPublishProfile>
</PropertyGroup>
</Project>