I have created an HTTP Function in VSCode using C# net6.0, and all I want to do is read from a local json file and give me a result. Using context.FunctionDirectory leads me to ...\bin\Debug\net6.0\.... In older .net stuff, I would expect to copy the file to the output directory as an artifact, but I'm coming up lacking on how to do that in .net 6.0 in an Azure Function. My poor Google skills have only led me down the path of adding a configuration file, but that's not exactly what I'm looking for. Is there an easy way to copy this file to the Function Directory so I can retrieve it during execution? Also, I've only run this locally, so I'm hoping whatever solution I find will also work when I push this up to Azure.
