在 kudu 中找不到 azure depolyment 应用程序服务文件

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

我在 Visual Studio 中的文件已损坏,但我之前已使用 Web 服务成功将其部署到 azure。

我尝试通过从 kudu 下载 wwwroot 目录来克隆项目,但我所有的 .cs 和 .cshtml 文件都不在 wwwroot 目录中,但网站仍在运行和工作。下面是 /site/wwwroot 目录和我本地项目文件夹中的一些文件的屏幕截图。

enter image description here

enter image description here

本地文件夹结构:
enter image description here

.net azure
1个回答
0
投票

在 kudu 中找不到 azure depolyment 应用程序服务文件

从 Visual Studio 部署到 Azure 应用服务的 WebApp 文件 (.cs/.aspx/.cshtml) 将被编译为带有 WebApp 名称的

dll/pdb and exe

enter image description here

我在视觉工作室中的文件已损坏

  • 您可以下载
    dll
    文件(使用 WINSCP/FTP)并在 Visual Studio 中使用它们在本地工作。

enter image description here

另一个解决方法是下载 dotpeek(.NET 编译器)并使用 dll 文件来获取完整的项目。

  • 从 dotpeek 打开下载的
    dll
    文件。

enter image description here

  • 右键单击
    dll
    ,然后单击
    Export to project

enter image description here

  • 所有文件将下载到所选文件夹中。

enter image description here

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