Two web projects in my solution that need to be deployed

I have a solution structured this way

Proj.Soln Proj.Api.csproj Proj.Web.csproj 

I configured microsoft azure from bitbucket.org. When I transmit a bitpack via git, azure will take this and deploy my application. How to indicate that I want to use Proj.Web.csproj and not Proj.Api.csproj?

+2
source share
1 answer

I am not sure if there is another method for choosing a project, but some steps will help you achieve your goal (note: this is verified and confirmed that it works):

  • Set up continuous deployment for your website to the Git repository (BitBucket)
  • Make an initial commit to make sure the configuration is up and running
  • Connect to your site via FTP (if you don’t know how to read the tutorial )
  • Go to the following folder on FTP: /site/deployments/tools - note that this folder may be hidden. If so, just enter it into the FTP client software.
  • In this folder you will see deploy.cmd file
  • download this file ( deploy.cmd )
  • open the file to edit it with your favorite text editing tool.
  • there are two lines with msbuild.exe that instruct which project will be built ( MyProjectfolder\MyProject.csproj )
  • change the correct path for another project and do not forget that the other project is also in a different folder (i.e. MyOtherProjectFolder\MyOtherProject.csproj )
  • save deploy.cmd
  • download the edited deploy.cmd and rewrite the old one in /site/deployments/tools
  • commit a new change to the source repository of the source code on BitBucket
  • have a cup of coffee and have fun!
+1
source

Source: https://habr.com/ru/post/1206731/


All Articles