问题描述
我想上载内的多个解决方案,一个asp.net网站项目,例如,一个解决方案是数据访问层和其他人业务逻辑层,UI,commonUtilities ..
I am trying to upload an asp.net website project with multiple solution within, for example one solution is for Data Access Layer and others are Business Logic Layer, UI, commonUtilities..
本地它工作正常,但是当我在远程服务器上传文件时,它显示什么期望,如果我只能上传用户界面分开那里有储存的aspx文件。
它也不会显示发布选项,当我用鼠标右键单击的主要解决方案。
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.
推荐答案
一种修正,这是错误的:你有一个网站项目下的多个解决方案
One Correction, This is wrong : You have multiple Solutions under a WebSite project.
您有一个Visual Studio的下其多个项目,包括UI项目,数据访问项目,类库等等...
You have a Visual Studio Solution with multiple projects under it including the UI project, Data Access project, class libraries etc...
您应该发布的 UI项目只是(你有ASPX文件)。右键单击该具体项目,你会看到在上下文菜单中的发布选项。您的其他项目将被编译成一个程序集( DLL 文件),将是一个叫宾当您发布它(文件夹中提供的假设你已经正确引用添加到这些项目在UI项目参考部分的)。移动这些文件(该文件ASPX,bin文件夹,在那里你有脚本/ CSS的任何文件夹)到您的服务器,你会好的。
You should be publishing the UI project only( where you have the ASPX files). Right click on that specific project and you will see the publish option in the context menu. Your other projects will be compiled to an assembly (DLL file) and will be available in a folder called bin when you publish it (Assuming you have proper references added to these projects in your UI projects references section) . Move those files (the ASPX files, bin folder, Any folders where you have the Scripts/CSS) to your server and you will be good.
这篇关于部署下其多个项目的ASP.NET网站解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!