Reputation: 133
I have one VS Solution with multiple function Projects. If I run the solution build in VS, it all works well as it is going to push the bin & function.json in to respective project folder. However, when I run msbuild or dotnet.exe in command line and output into a common folder (for ex: msbuild MB.Azure.sln -property:outdir=\msbuildout
), I can see all the libraries going to bin folder but the function.json file is getting deleted for all projects except for the last one that's built in the build chain.
Is this expected behaviour? Is there any way that I can still keep all the function.JSON files? Or is it possible to manually generate the files instead of automatic system generated?
-Srikanth
Upvotes: 0
Views: 1600
Reputation: 354
I suspect if you are using the same output folder for all projects.
Unless you have a specific requirement to have each function in a separate project, I suggest you create your functions in the same project. Simply create a class file per function.
After you have built the project there will be a folder for all functions, each containing the related function.json.
Upvotes: 1