-
Notifications
You must be signed in to change notification settings - Fork 435
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
Tooling Issue with Binding direction #1507
Comments
See original issue: https://github.com/Microsoft/BotBuilder-WebJobs-BotExtension/issues/5 |
The ideal fix is #1508 That's complicated.
|
Correct me if I'm wrong, but the project type included with the new VS tooling requires the use of attribute-based binding - there's no way to "opt out" and manually provide the function.json file? If that's the case, what is the best alternative approach to writing Azure Functions with VS17? Create an empty asp web app and call the command line tools post build? |
@paulbatum and I just tried and we were unable to get the workaround of providing your own function.json to work, though we think it should. @lindydonna might know of a way? |
Make sure you set function.json to copy to output directory, and use the same folder name as function. You can't use attributes in that same function though, because the output will be overwritten by the build step. Perhaps that's what you meant? |
Not what I meant, but makes perfect sense. I'll give that a shot. Thanks. |
@lindydonna Unfortunately I couldn't get your suggestion to work. As soon as a add a |
@ahmelsayed Could you take a look? |
the problem is you fighting with the cleanup logic for the build task which deletes any folder with a function.json in it. Let me think about it. |
@colbylwilliams I've created this issue to track the function.json problem: Azure/azure-functions-vs-build-sdk#44 |
@mathewc will work with @ahmelsayed on getting the right fix into the MakeFunctionJson tool until the real fix #1508 happens. |
I also moved the discussion about being able to manually add a function.json when using the VS tooling to Azure/azure-functions-vs-build-sdk#50 |
Closing in favor of #1508. |
The logic our VS tooling uses to determine the direction of a binding is too simple. E.g. currently it (from @ahmelsayed):
However, for many input bindings (e.g. Bot IDirectLineClient, NotificationHubClient, etc.) this doesn't work, and ends up generating incorrect metadata, causing runtime failures.
We need to update IJobHostMetadataProvider to be able to serve the correct information.
The text was updated successfully, but these errors were encountered: