How to open an existing azure function in visual studio?

后端 未结 1 466
半阙折子戏
半阙折子戏 2021-02-14 09:20

I\'m pretty new to Azure and using the portal, wrote an Azure Function. Now I would like to continue working on it using Visual Studio 2017. I can\'t seem to find a way to open/

1条回答
  •  情歌与酒
    2021-02-14 09:58

    Well, as close as you can get to that is to go to the portal, your Function App, then click Download app content button and ask for Visual Studio solution:

    This will give you a zip file with Functions, including csproj file.

    The problem is that portal functions are C# scripts (csx files), and Visual Studio isn't great to work with them. When you create a new Function App in Visual Studio 2017, it will make a precompiled function project - a normal class library with cs files.

    Unfortunately, there is no automated way to convert script functions to precompiled ones.

    0 讨论(0)
提交回复
热议问题