Skip to content

Generate correct ScriptFile value when generating metadata.#2103

Merged
kshyju merged 5 commits intomainfrom
shkr/2082-netfx-entrypoint
Nov 29, 2023
Merged

Generate correct ScriptFile value when generating metadata.#2103
kshyju merged 5 commits intomainfrom
shkr/2082-netfx-entrypoint

Conversation

@kshyju
Copy link
Copy Markdown
Member

@kshyju kshyju commented Nov 28, 2023

Fixing function metadata provider to correctly generate ScriptFile property value. Currently it always generate a value which ends with ".dll" and this causes NETFX function apps to fail during function load. This PR adds changes to determine whether the value should be ".dll" or ".exe" and use the appropriate value.

We only need to do this for the entry assembly. Dependent assemblies will be always .dll.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Copy link
Copy Markdown
Member

@satvu satvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just need pipeline tests fixed.

@kshyju kshyju merged commit 0733bbd into main Nov 29, 2023
@kshyju kshyju deleted the shkr/2082-netfx-entrypoint branch November 29, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants