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
Asked
Active
Viewed 98 times
2 Answers
2
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.

cory-fowler
- 4,020
- 2
- 18
- 29
2
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

Shaun Luttin
- 133,272
- 81
- 405
- 467
-
After hours of research, I came exactly to this approach, but it didn't work for a simple PHP Linux website in Azure, when pushing got error "Could not find the .NET Core project file". – mikl Jan 05 '22 at 15:16