Update your Azure Functions toolsets and templates by going through menu to Tools>Options>Projects and Solutions>Azure Functions and then click Check for Updates button and update.