English 中文(简体)
部署ASP.NET网站 解决其下多个项目
原标题:Deploying an ASP.NET website Solution with multiple projects under it

我试图上传一个有多种解决方案的 Asp.net 网站项目, 例如数据存取图层, 其它是商业逻辑层、 UI、通用工具。

Locally it is working fine but when I upload file in the remote server it shows nothing expect if I only upload User Interface separately where there are aspx files stored. It also does not show publish option when I right click on the main solution.

最佳回答

一个更正, 这是错的 : 您在一个 WebSite 项目下有多个解决方案 。

您有一个视觉工作室 < 坚固> 解决方案, 包括 UI 项目、 数据存取项目、 班级图书馆等多个项目

您应该只发布 < enger> > UI 工程 < / strong > (在您有 ASPX 文件的地方) 。 右键点击该特定工程, 并在上下文菜单中看到发布选项。 您的其他工程将编集成一个组件( < enger> DLL 文件), 当您发布时, 将会在一个名为“ bin " 的文件夹中提供( < em>, 假设您在您的 UI 工程引用区域 < / em > 中添加了这些项目的适当引用) 。 将这些文件( ASPX 文件、 bin 文件夹、 您有 Scripts/ CSS 的文件夹) 移至您的服务器, 您将表现良好 。

问题回答

如果您的网络应用程序是参照其他项目, 视觉工作室将部署他们的 DLL 和网络应用程序/用户界面 。

HTH, HTH, HTH, HTH, HTH, HTH, HTH, HTH, HT, HTH





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签