Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 11, 2010 11:15 AM by abhijit gokhale
May 05, 2010 01:49 PM|LINK
I want to publish my web application as a single .dll file without all the source code and .aspx markup pages.
I am using VS 2010 with the "Web Deployment Project" add-in. In the compilation settings, I unchecked "make this site updatable" because I want the .aspx files to be compiled as well.
Publishing my web application using the publish feature in VS 2010 works fine, and a single .dll file is created in the "bin" directory.
But all the .aspx markup files are still copied to the web server! I've read that those files are merely marker files which can be deleted, but not in my case. They still contain the whole markup and when I delete them, my application won't run anymore.
It's like I had checked the "make this site updatable" option, but I haven't!
Any help would be greatly appreciated
I've found something... my root project folder contains two folders:
The .csproj_deploy folder, which is apparently created by the Web Deployment Project add-in, contains the compiled application with marker .aspx files, which is what I want! But Visual Studio does not publish the .csproj_deploy folder, it publishes the standard
MyApp folder. How can I change this behaviour?
May 06, 2010 04:15 PM|LINK
I may be totally wrong here... but I did not think that was possible. I was under the impression that the .aspx files were needed as they contain all the HTML markup like you said. Without those, the page does not have what it needs to render ??
Edit* Turns out I am totally wrong :) Go figure, it is possible, so not sure what the problem is
May 07, 2010 06:51 AM|LINK
aspx files will be there. compiles on the code behind files attaching the aspx pages as dlls and class files.
May 07, 2010 10:41 AM|LINK
Hi, thanks for your reply. As I stated below in my opening post, the .aspx files are still there, but these are NOT marker files, they are full .aspx files with all the markup. So basically the Publish feature in Visual Studio uploads my development version,
but I want it to publish the compiled output of my Web Application Project (the .dll files and .aspx marker files)!
When I click the "Publish" button, it uploads:
"MyApp" (development folder with full source code)
But I want it to upload:
"MyApp.csproj_deploy" (output folder with compiled web site and .aspx marker files)
How can I achieve this?
May 09, 2010 07:40 AM|LINK
How you coded? Inline or Codebehind?
May 09, 2010 10:26 AM|LINK
I used code-behind files. But as I said, everything is compiled correctly, the only problem is that the Publish feature does not upload the compiled output folder.
May 09, 2010 11:55 AM|LINK
In normal condition after compiling all the dlls are put into the bin folder and keep the aspx files intact.
May 09, 2010 12:16 PM|LINK
Yes, and that's exactly what is not supposed to happen. The .aspx files should be replaced with empty marker files, but they are not.
May 10, 2010 04:51 AM|LINK
Try to find a hint from here
May 10, 2010 11:40 AM|LINK
Hello, thanks for your reply. Unfortunately, neither of these links provide an answer to my question: How can I automatically pre-compile and publish my Web Application Project using the Publish feature?