LarsJohow1 There are a few options;
A/ The most "correct" is using "Publish" MSBuild task (PHP Project is a regular MSBuild project) which has tons of options (i.e. StackOverflow) (and mostly requires a corresponding .pubxml
file)
Example publish command for FileSystem
publish:
msbuild /t:publish /p:WebPublishMethod=FileSystem /p:DeployTarget=WebPublish
You'll need to set CopyToOutputDirectory
for all the files you want to publish to PreserveNewest
or Always
. Put the following into the project file:
<ItemGroup>
<Content Update="**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
B/ or, on Azure Pipeline I would go with straightforward Azure App Service deploy
where I just specify the source directory and the deployment target (the Azure App Service). It does not require a project file nor .pubxml
profiles.