I have an azure function that was working perfectly this morning (was published on Azure). I had to add some logging functionality in Azure Storage and suddently I cannot run my function anymore. I have not tried to publish it as it does not run locally.
The symptom is that I get the following exception:
System.IO.FileNotFoundException: 'Could not find file 'C:\projects\MySuperFunction\MySuperFunction\bin\Debug\netstandard2.0\bin\function.json'.'
I read that thtis file is supposed to be generated at build time but I can confirm that the file is not there at all.
The only modifications I made to the project was to add a reference to the WindowsAzure.Storage nuget package (v9.2.0)
Does anyone knows why it is failing now while it was not before and, ideally, how to get it back working?
bin
andobj
folders under all projects, and deleting the.vs
folder. You might want to close Visual Studio before you do so. – rickvdboschfunction.json
should be generated under a folder named by function name, not inbin
directly... – Mikhail Shilkov