LaurinSt
LaurinSt

Reputation: 982

Azure Website GitDeploy Website Project

Unfortunately we need to use a Visual Studio Website Project not a Visual Studio Web Application Project! That means that our website to publish has no .csproj We now try to setup git deployment for our azure website. however it tells me there is no project file to deploy. It seems that the azure git deployment always tries to deploy a web application project not a website project. Do you know how i can tell the git deployment to make a website project deploy? best laurin

Upvotes: 1

Views: 106

Answers (2)

Shaun Luttin
Shaun Luttin

Reputation: 141434

Add a .deployment file to the root of your repository.

.git
.deployment         <----- this file
DirOne
    DirTwo
        WebsiteRoot           <----- points to this directory
            App_Data
            bin
            etc
            Web.config

Add the following lines to the .deployment file.

[config]
project = DirOne/DirTwo/WebsiteRoot

See also: https://github.com/projectkudu/kudu/wiki/Customizing-deployments#deploying-a-specific-folder-for-a-node-php-or-aspnet-site

Upvotes: 2

cory-fowler
cory-fowler

Reputation: 4088

I think this is what you're looking to Customize your deployment this is done by including a .deployment file in the root of your application. It will instruct kudu the deployment engine in Azure Websites which folder to deploy instead of relying on the csproj.

Upvotes: 2

Related Questions