Azure / Azure/Azure-Functions

GenerateFunctionsExtensionsMetadata breaks when assembly references a .net core dll

Open
#1,432 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Create an Azure 3.1 function.
Either

- reference Microsoft.Extensions.Configuration.UserSecrets package
- Use a [assembly: FunctionsStartup(..)]
or
- Include a UserSecretsId in the PropertyGroup for the Project configuration

When building because the Microsoft.Extensions.Configuration.UserSecrets dll is a framework dll, it is not copied to the output directory. When the task is run, as it is a NetFramework 4.6 task it cannot find the referenced dll, resulting in the startup extension is not written to extensions.json.

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.