How to publish a solution with 4 projects in one web app on azure

Juan Rivero 20 Reputation points
2023-04-24T14:19:22.0933333+00:00

I have a Visual Studio Solution with 4 Projects, I am able to publish one project but the other 3 cannot be publish to the webapp but to an Azure Container Registry. I want to understand if there is only one that can be publish to Azure Web App and the other ones to Azure container registry, will this be the path to make it work or there is another way to make all the projects in the solution to be publish under the same web app? Thank you in advance.

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
277 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,880 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
957 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,166 Reputation points MVP
    2023-04-24T15:45:28.0933333+00:00

    Hello @Juan Rivero! Have you considered these :

    • All the projects in the solution should be compatible with the same target framework version.
    • If multiple projects in the solution have their own web.config file, then the settings in these files could potentially conflict with each other. In such cases, you may need to merge the settings from these files into a single web.config file for the web app.
    • If the projects have dependencies on each other, then you will need to make sure that these dependencies are correctly resolved when publishing to the web app. Why wont use containers ? create a separate Dockerfile for some ( somehow gather dependencies) and publish others as Web Apps In theory it is possbile , under limitations of the code itself I hope this helps ! If you find this helpful kindly mark it as Accepted! BR

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.