如何下载Azure网站(特别是代码隐藏)文件? [英] How to download Azure Website (specifically code-behind) files?

查看:95
本文介绍了如何下载Azure网站(特别是代码隐藏)文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的硬盘刚刚崩溃。我已通过Google云端硬盘备份了所有内容。但是,我知道有些文件没有同步。我在崩溃前不久将我的网站发布到我的Azure帐户。



我需要获取那些.cs文件。我想将整个网站下载到我的计算机上(如反向发布)。我该怎么做?



我知道如何通过FTP和WebMatrix登录我的Windows Azure网站。 WebMatrix和FTP仅显示ashx,asmx和aspx页面。它们不显示代码隐藏(cs)文件。如何获取aspx.cs,ashx.cs等文件以便我可以编辑它们?

My hard drive just crashed. I have/had everything backed up via Google Drive. However, I know some files didn't sync. I published my website to my Azure account shortly before it crashed.

I need to get those .cs files. I wanted to just download the entire site onto my computer (like a reverse publish). How do I do that?

I know how to login to my Windows Azure Website via FTP and WebMatrix. WebMatrix and FTP only displays ashx, asmx and aspx pages. They do not show the code-behind (cs) files. How do I get the aspx.cs, ashx.cs, etc files so I can edit them?

推荐答案

没有什么可以帮助任何人下载任何代码隐藏文件,除非有内部人员访问该网站,与支持该方的人一样。这不是反向发布。如果您真的是该网站的作者,您应该可以访问您的所有数据;在这方面,代码隐藏,客户端,HTML或任何其他文件之间没有区别。如果你无法访问它们,请询问客户服务。



-SA
Nothing can help anyone to download any code-behind files, unless one has insider access to the site, the same as people supporting the side do. This is not "reverse publish". If you are really the author of the site, you should have access to all your data; in this respect, there are no distinction between code-behind, client-side, HTML or any other files. If you cannot access to them all, ask customer service.

—SA


我发现表示cs文件位于VS或Azure SDK创建的dll中。我使用了http://www.red-gate.com/products/dotnet-development/reflector/来查看我创建的webrole dll中的内容。使用这个软件,我可以得到我需要的所有cs文件。



另外,常规网站和Azure(云)网站之间存在差异。 Azure将代码隐藏起来并将其放入dll中。所以,使用FTP或WebMatrix你无法得到代码隐藏的原因所有显示的是aspx,ashx,asmx等(没有代码)。



1.下载WebMatrix

2.通过WebMatrix登录Azure帐户

3.下载Azure网站

4.下载并安装.Net反射器

5.从.Net Reflector中下载的azure站点(位于/ bin /文件夹中)打开webrole dll文件
I found out that the cs files were in a dll that VS or Azure SDK created. I used http://www.red-gate.com/products/dotnet-development/reflector/ to view what was inside my webrole dll that was created. Using this software, I am able to get all the cs files that I needed.

On another note, there is a difference between regular websites and Azure (cloud) websites. Azure takes the code-behind and puts it into a dll. So, using FTP or WebMatrix you are unable to get the code-behind cause all that is shown are aspx, ashx, asmx, etc (NO CODE BEHIND).

1. Download WebMatrix
2. Login to your Azure account through WebMatrix
3. Download your Azure Website
4. Download and install .Net Reflector
5. Open the webrole dll file from your downloaded azure site (which is located within your /bin/ folder) in .Net Reflector


这篇关于如何下载Azure网站(特别是代码隐藏)文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆