[英]how to make azure function use the latest code published from VS2022
I have a netcoreapp3.1 project with few functions.我有一个功能很少的 netcoreapp3.1 项目。 I made changes to one function and deployed using VS 2022 but when I test in Azure, I can clearly see it is using the older code.
我对一个 function 进行了更改并使用 VS 2022 进行了部署,但是当我在 Azure 中进行测试时,我可以清楚地看到它使用的是旧代码。 I tried removing then adding the function from the project.
我尝试从项目中删除然后添加 function。 Restarting the function app in azure and other refresh methods.
重启azure中的function应用等刷新方法。
Will I only be able to get the new code if I delete and recreate the function app?如果我删除并重新创建 function 应用程序,我是否只能获得新代码? Is there another way to refresh the running code?
是否有另一种方法来刷新正在运行的代码?
Once you have published your function to a FunctionApp throughout VisualStudio 2022 or VisualStudio Code, you can deploy updates to that function app.在整个 VisualStudio 2022 或 VisualStudio Code 中将 function 发布到 FunctionApp 后,您可以将更新部署到该 function 应用程序。 Eg if you have added a new HttpTrigger, you can publish all the code including the added HttpTrigger from Visual Studio itself.
例如,如果您添加了一个新的 HttpTrigger,您可以从 Visual Studio 本身发布包括添加的 HttpTrigger 在内的所有代码。
Visual Studio 2022, just a black Azure Function App for testing purposes: Visual Studio 2022,只是一个黑色 Azure Function 应用程序用于测试目的:
Visual Studio Code ( Azure Tools plugin ): Visual Studio 代码( Azure 工具插件):
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.