[英]Publishing a azure function from Visual Studio to Azure does not generate out bindings
I am new to Azure Functions and trying to create a sample function to send/insert a message into Queue & Table storage. 我是Azure函数的新手,并试图创建一个示例函数以将消息发送/插入到Queue&Table存储中。
I am using Visual Studio 20117 15.3.5 Professional edition (currently I am on trail version) 我正在使用Visual Studio 20117 15.3.5专业版(当前使用的是试用版)
I am able to create a function and working fine in local, the issue is when I publish the function from Visual Studio to Azure its not copying/function.json is missing out bindings 我能够创建一个函数并在本地正常工作,问题是当我将函数从Visual Studio发布到Azure时,它没有复制/ function.json丢失了绑定
see bellow screen shots 看下面的屏幕截图
Visual Studio Code: Visual Studio代码:
After Publish to Azure, Function.json file: 发布到Azure后,Function.json文件:
When publishing from VS, The output bindings are captured in the compiled binary (based on the attributes you see in your code), and have no need to exist in function.json. 从VS发布时,输出绑定将捕获到已编译的二进制文件中(基于您在代码中看到的属性),并且不需要存在于function.json中。 Only the triggers show up there, as they are needed to make the triggering infrastructure work. 只有触发器才会显示在此处,因为它们需要使触发器基础结构正常工作。
Generally, you should ignore this file when dealing with VS deployments. 通常,在处理VS部署时,应忽略此文件。 Things will work correctly and you should view this file as an implementation detail. 一切正常,您应该将此文件作为实现的详细信息进行查看。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.