简体   繁体   中英

How do I git deploy an .fsproj based f# project to azure?

I have an ASP.NET core application that I've been auto-deploying to an azure app service on commit to a git repo. It worked fine as a project.json type project.

I've converted my project.json to myproject.fsproj and it builds and runs locally. On comitting the .fsproj to git, the deployment was triggered, but it failed with the activity log containing one line: 'D:\\home\\site\\repository\\myproject.fsproj' is not a deployable project.

I guess it's an issue with the default kudu deployment script? Does anyone know how to sort this out, or do I need to submit an issue/RFC to the kudu guys?

UPDATE

I generated the original .fsproj using: dotnet new mvc --language f# --framework netcoreapp1.0

I've since made changes to it, so I will try to do a minimal case later tonight.

Turns out that the default deployment in azure wouldn't deal with this.

Following the answer on Kudu Deployment Script for ASP.NET Core 1.0 , I generated a custom deployment script using:

npm install -g kuduscript

kuduscript -y --aspNetCore myproject.fsproj

Added the resulting deploy.cmd along with a .deployment:

[config] command = deploy.cmd

A deployment triggered by a push to git works as expected now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM