Azure / Azure/static-web-apps

Azure Function with embedded files cannot be compiled in Github Actions

Open
#1,441 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

I'm embedding files in Azure Function.

If the Azure function configuration Api.csproj contains:

$(AssemblyName.Replace(' ', '_'))


Github Action returns the following:

```
---End of Oryx build logs---
Oryx was unable to determine the build steps. Continuing assuming the assets in this folder are already built. If this is an unexpected behavior please contact support.
[WARNING] The function language could not be detected. The language will be defaulted to node.
The function language version detected is unsupported or invalid. The following node language versions are valid: 12, 14, 16, 18. If you are not using Azure Functions, you can skip this check by removing the 'api_location' input from the workflow file.

```

Here is the Api.csproj
```


net8.0
v4
Exe
enable
enable
Api
$(AssemblyName.Replace(' ', '_'))

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.