locked
Use of Publishing an application RRS feed

  • Question

  • User-476222264 posted

    Hi All,

    I wish to be aware of the benefits of publishing a .net application.

    Can't we deploy the application in iis, without publishing the same?

    Please help me understand these concepts.

    Thanks

    Manikandan

    Monday, November 25, 2013 6:22 AM

Answers

  • User879079649 posted

    Using publish method you will have only the  compiled code needed to deploy your web project, it is a bad idea to just copy and deploy your source code. When you publish an ASP.NET Web application project, Visual Studio or Visual Web Developer Express compiles the Web application files into a single assembly and then copies the compiled assembly to a specified location.You can publish the Web application to a local or shared folder, to an FTP site, or to a Web site that you access by using a URL.

    When you use visual studio you can select the Publishing Method, 

    Have a look at the great article found here,

    http://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 25, 2013 6:40 AM

All replies

  • User-760709272 posted

    Publishing makes sure that only the files needed are deployed.  If you just copied the application then you'd deploy all the code-behind files etc.

    Monday, November 25, 2013 6:36 AM
  • User879079649 posted

    Using publish method you will have only the  compiled code needed to deploy your web project, it is a bad idea to just copy and deploy your source code. When you publish an ASP.NET Web application project, Visual Studio or Visual Web Developer Express compiles the Web application files into a single assembly and then copies the compiled assembly to a specified location.You can publish the Web application to a local or shared folder, to an FTP site, or to a Web site that you access by using a URL.

    When you use visual studio you can select the Publishing Method, 

    Have a look at the great article found here,

    http://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 25, 2013 6:40 AM