本文介绍了从IIS部署中恢复ASP.NET项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ASP.NET Web开发的真正新手,具有Java背景.一个朋友在IIS上运行ASP.NET 3.0部署.他找不到在Visual Studio 2008中创建的原始项目文件,并请我帮忙.

I'm a real newbie for ASP.NET web development, having a background in Java. A friend has an ASP.NET 3.0 deployment running on IIS. He can't find the original project files created in Visual Studio 2008 and has asked me to give him a hand.

是否可以从IIS上的部署重新创建项目?我在inetpub [domain] \ httpdocs目录中看到很多ASPX和CS文件.

Is it possible to recreate the project from the deployment on IIS? I see lots of ASPX and and CS files so in the inetpub[domain]\httpdocs directory.

我看不到.SLN文件.我认为这就是他的需要.重建真的是一件繁琐的事吗?是否有需要重新创建的资产或源文件无法部署到ISS?

I don't see the .SLN file. I assume that's what he needs. Would it be a real chore to rebuild? Are there any assets or source files that won't be deployed to ISS that I'd need to recreate?

谢谢

推荐答案

如果它是已编译的Web应用程序项目,则代码将位于bin文件夹中的已编译程序集中.可以使用.NET反射器将其反编译.来源将可读,但不是原始的.

If it's a compiled web application project the code will be in a compiled assembly in the bin folder. This can be decompiled with .NET reflector. The source will be readable but not as original.

如果这是一个网站项目,那么您很幸运.代码文件将位于网站结构中(* .aspx.cs或* .aspx.vb).这些将构成您在Visual Studio中重新创建站点所需的几乎所有资产.创建项目和解决方案文件以在VS中管理这些内容将很容易.

If it's a website project you're in luck. The code files will be in the website structure (*.aspx.cs or *.aspx.vb). These will constitute pretty much all of the assets you need to recreate the site in Visual Studio. Creating a project and solution file to manage these in VS will be the easy bit.

这篇关于从IIS部署中恢复ASP.NET项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:27