我在 Visual Studio 中的文件已损坏,但我之前已使用 Web 服务成功将其部署到 azure。
我尝试通过从 kudu 下载 wwwroot 目录来克隆项目,但我所有的 .cs 和 .cshtml 文件都不在 wwwroot 目录中,但网站仍在运行和工作。下面是 /site/wwwroot 目录和我本地项目文件夹中的一些文件的屏幕截图。
在 kudu 中找不到 azure depolyment 应用程序服务文件
从 Visual Studio 部署到 Azure 应用服务的 WebApp 文件 (.cs/.aspx/.cshtml) 将被编译为带有 WebApp 名称的
dll/pdb and exe
。
我在视觉工作室中的文件已损坏
dll
文件(使用 WINSCP/FTP)并在 Visual Studio 中使用它们在本地工作。或
另一个解决方法是下载 dotpeek(.NET 编译器)并使用 dll 文件来获取完整的项目。
dll
文件。dll
,然后单击 Export to project
。