Azure / Azure/azure-functions-host

extensions.csproj in the functions-extensions folder cause rest of function files not to be copied to wwwroot on ci/cd deployment

Open
#2,791 4 comments 2 reactions 1 assignee Claimed by @mathewc View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

when function extensions are installed the extensions.csproj is copied and built in the functions-extensions folder. It works perfectly this way when run locally, but when it is deploy using github ci/cd the rest of the files of the function app are never copied out of the repository folder.

#### Investigative information

- Function App version (1.0 or 2.0-beta): 2.0.11651.0
- Region: Central US and West US
- Function language: NodeJS

#### Repro steps

1. Using Functions CLI on MacOS
2. Install an extension such as: func extensions install -p Microsoft.Azure.Webjobs.Extensions.CosmosDB -v 3.0.0-beta7
3. deploy the function to azure using github ci/cd

#### Expected behavior

the extensions.csproj would be processed an installed and all the other files would be copied from the repo folder into the wwwroot folder

#### Actual behavior

since the kudu script is expecting the extensions.csproj to be in the root folder it only copies the extensions bin folder and not the rest of the function thus none of the functions in the function app are accessible

#### Known workarounds

copy the extensions.csproj file to the root function app folder and delete the functions-extensions folder

#### Related information

* Programming Language: NodeJS
* OS: MacOS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.