如何从 Visual Studio Code 中将文件和文件夹添加到 Azure Web 应用程序

问题描述 投票:0回答:2

我将 Azure 扩展安装到我的 Visual Studio Code 并连接到我的 Azure Web 应用程序,我可以毫无问题地在 Visual Studio Code 中打开和编辑来自我的 Azure Web 应用程序的文件。我正在努力解决的是如何在 VS 代码中将文件和文件夹添加到我的 Azure Web 应用程序。 我可以在 VS code 中创建一个新文件,但我找不到使这个新文件成为我的 Web 应用程序的一部分的方法。

此外,无法将文件从 Windows 中的文件资源管理器拖动到 VS code 中的 Azure Web App。

有没有办法在 VS 代码的 Azure 扩展中显示的 Azure Web 应用程序的文件部分中创建/删除/移动文件和文件夹?

我试图在 Youtube/Google/stackoverflow 中找到答案,但没有找到适用于我的问题的相关解决方案。

如果有人能够展示如何管理在 VS Code 的 Azure 扩展中打开的 Azure Web 应用程序中的文件和文件夹,并且详细程度能够非常详细地显示要单击/添加的内容(从我没有太多经验)

visual-studio-code azure-web-app-service filesystems directory-structure
2个回答
1
投票
  • 从 VSCode 创建并部署 Azure 应用服务。
  • 尝试在 VSCode 中添加新文件/文件夹并再次部署到同一个 AppService。

本地文件夹 enter image description here

  • 无法看到新创建的文件。

部署的应用程序文件夹 enter image description here

您可以从 Azure 门户直接添加、编辑或删除 Azure Web App 中的文件/文件夹。

导航至 KUDU 控制台

URL:https://YourWebAppName.scm.azurewebsites.net/DebugConsole

您可以从

打开 KUDU 控制台

Azure 门户 => YourWebApp => 高级工具 => Go => 调试控制台 => CMD

  • 我们可以选择直接创建新文件夹/文件。

enter image description here


0
投票

发布应用程序时,文件夹将与 Azure 文档存储库同步。注意,如果文件夹为空,则不会发布!

© www.soinside.com 2019 - 2024. All rights reserved.