You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Referencing Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator should create an extensions.json file within our TargetDir. Currently, referencing both this, and Microsoft.Net.SDK.Functions leads to the incorrect TargetDir being used in the Generation part of this project.
Expected behavior
The file extensions.json should be generated in the correct TargetDir directory, with the correct values.
Actual behavior
A variety of things happen depending on the specific order of events, but most resolve into an empty extensions.json file being outputted somewhere.
Known workarounds
Putting a custom .targets file within your project.
Related information
I'm fairly sure this is the cause of a lot of issues given I believe (of course I could be wrong) this bug is referenced in the following:
Investigative information
Repro steps
Referencing
Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator
should create anextensions.json
file within our TargetDir. Currently, referencing both this, andMicrosoft.Net.SDK.Functions
leads to the incorrect TargetDir being used in the Generation part of this project.Expected behavior
The file
extensions.json
should be generated in the correct TargetDir directory, with the correct values.Actual behavior
A variety of things happen depending on the specific order of events, but most resolve into an empty
extensions.json
file being outputted somewhere.Known workarounds
Putting a custom
.targets
file within your project.Related information
I'm fairly sure this is the cause of a lot of issues given I believe (of course I could be wrong) this bug is referenced in the following:
I have a pull-request which I'll attach shortly.
The issue is mostly caused by https://github.com/Azure/azure-functions-vs-build-sdk/blob/master/src/Microsoft.NET.Sdk.Functions.MSBuild/Targets/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets#150 changing the TargetPath which (given the Property's in the current Extension.Targets are set at start) means that the ConsoleApp within ExtensionsMetadataGenerator executes over the wrong directory.
The text was updated successfully, but these errors were encountered: