Skip to content

Better error message when Azure Functions Core Tools is missing in dotnet run use case. #3020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 9, 2025

Conversation

kshyju
Copy link
Member

@kshyju kshyju commented Apr 7, 2025

resolves #2976

Currently, when func is not available, a wrapped Win32/Native exception is thrown. This PR updates the logic to first check if func exists on the machine. If not, it sets RunCommand and RunArguments to display a user-friendly error message.

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)

kshyju added 2 commits April 7, 2025 09:02
…user's environment when they try to run `dotnet run` to start function app.
@kshyju kshyju merged commit 49b7ef6 into main Apr 9, 2025
28 checks passed
@kshyju kshyju deleted the shkr/dotnet_run branch April 9, 2025 17:14
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.

dotnet run should facilitate acquisition of the Core Tools
2 participants