locked
vs 2012 web site project has no release! RRS feed

  • Question

  • User-1345623911 posted

    Hi

    I am starting to use vs 2012

    when i  create a website Application Project  in the publish setting it has got both release and debug mode

    but when creating a website project it just has got debug mode

    how should i add release or should i use a web application instead!

    i read the article on mictrosoft

    http://msdn.microsoft.com/en-us/library/dd547590.aspx

    about the differences but its a little bit complicated!

    Tuesday, May 21, 2013 3:39 PM

Answers

  • User551462331 posted

    the release mode would appear in "web application" project only.

    web site project do not have release mode build option in visual studio... once u deploy them, when each page is accessed first time, then that page will be compiled. thereafter from next request for the same page would use previously compiled page

    in short, first requests to each page in web site project are slow in responses it works fine there after

    also, make sure that u dont have this in deployed web.config file

    <compilation debug="true">

    it should be changed to

    <compilation debug="false">

    it would badly impact performance of u r web site... check this

    http://blogs.msdn.com/b/tess/archive/2006/04/13/575364.aspx

    if u have small  web site with little functionality u can stick to web site project for more complex project it is better to have web application project

    hope this helps...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 21, 2013 3:44 PM

All replies

  • User551462331 posted

    the release mode would appear in "web application" project only.

    web site project do not have release mode build option in visual studio... once u deploy them, when each page is accessed first time, then that page will be compiled. thereafter from next request for the same page would use previously compiled page

    in short, first requests to each page in web site project are slow in responses it works fine there after

    also, make sure that u dont have this in deployed web.config file

    <compilation debug="true">

    it should be changed to

    <compilation debug="false">

    it would badly impact performance of u r web site... check this

    http://blogs.msdn.com/b/tess/archive/2006/04/13/575364.aspx

    if u have small  web site with little functionality u can stick to web site project for more complex project it is better to have web application project

    hope this helps...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 21, 2013 3:44 PM
  • User-1345623911 posted

    so you mean when i have a website project  and i published it(which is debug only)

    i should copy all the same files to the server

    i have published my website project and the debug folder has got very same files! how is thta?

    Tuesday, May 21, 2013 3:51 PM