English 中文(简体)
VS 2008 : How to publish with out DLLs?
原标题:

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only asps files and dll s , Instead i want to use the aspx files and aspx.cs file .This would help other developers to download the code and modify it whenever required od debug it if there is any need.

I tried to remove the Inherits attribute from the Page directive in the aspx page, but next time when i want to add an even for a server side control, Its getting added in the aspx page itself,not the code behind

最佳回答

A "web application" in Visual Studio is compiled on your local machine, and then uploaded to the server as a DLL and some support files. A "web site" in Visual Studio is organized with code files in the App_Code folder, plus your .aspx and .aspx.cs files. To deploy you copy everything up to the server, and the .NET runtime on the server does the compilation dynamically, when the files are first accessed.

So, to do what you re asking for, it sounds like you should convert your web application to a web site. Then, just zip everything up, copy it to the server, unzip, and you re done.

问题回答

If you want to publish both of aspx and .cs file, in order to share with other developer, you can just copy over the whole website, with all the csprojects and slns.

A better way is to setup a source control at your server, and as you checkin your code, compile your code at the server and serve the pages from there. In this way anyone who has access to the machine can just step in and debug, if necessary





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签