I am using VSTS with TFS repository for hosting my code. The solution is a Asp.Net core solution and contains couple of projects. I have two projects in the solution that goes to different App Services - one will be deployed to a Web App and other to an API App.
Question is how do I configure a single build definition / release definition that deploys these artifacts. Currently, I have two definitions - one for each and I would like to have one. How can I go about configuring this?
<DesktopBuildPackageLocation>..\..\a\WebApp</DesktopBuildPackageLocation>
). With this way, the web app published result will be in different folders. /p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:PublishProfile="[profile name]"
.$(build.artifactstagingdirectory)
)Update:
Using multiple Publish Tasks to publish each package is ok too (Do not need the publish profile).