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
EDIT:
I've found something... my root project folder contains two folders:
"MyApp"
and
"MyApp.csproj_deploy"
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?
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
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)
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.
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?
jballh
Member
56 Points
49 Posts
Compiled web application still contains .aspx markup files
May 05, 2010 01:49 PM|LINK
Hello,
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
EDIT:
I've found something... my root project folder contains two folders:
"MyApp"
and
"MyApp.csproj_deploy"
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?
koogamagnum
Member
97 Points
35 Posts
Re: Compiled web application still contains .aspx markup files
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
cnranasinghe
Star
8899 Points
1800 Posts
Re: Compiled web application still contains .aspx markup files
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.
jballh
Member
56 Points
49 Posts
Re: Compiled web application still contains .aspx markup 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?
cnranasinghe
Star
8899 Points
1800 Posts
Re: Compiled web application still contains .aspx markup files
May 09, 2010 07:40 AM|LINK
How you coded? Inline or Codebehind?
jballh
Member
56 Points
49 Posts
Re: Compiled web application still contains .aspx markup files
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.
cnranasinghe
Star
8899 Points
1800 Posts
Re: Compiled web application still contains .aspx markup files
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.
jballh
Member
56 Points
49 Posts
Re: Compiled web application still contains .aspx markup files
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.
cnranasinghe
Star
8899 Points
1800 Posts
Re: Compiled web application still contains .aspx markup files
May 10, 2010 04:51 AM|LINK
Try to find a hint from here
http://www.velocityreviews.com/forums/t605809-asp-net-2-0-visual-studio-2005-deploying-no-dlls.html
http://www.kentico.com/docs/devguide/index.html?pre_compilation_publishing.htm
jballh
Member
56 Points
49 Posts
Re: Compiled web application still contains .aspx markup files
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?