zoukankan      html  css  js  c++  java
  • Web Application Projects Publish Options

    In a WAP we usually have a Project file, User file, Bin folder, Obj folder, ASP.NET pages, User Contorls, WCF and Web Services etc. ASP.NET pages and other similar files have two additional artifacts in a WAP project as shown below(aspx structure):

    When you build the WAP project the resources from both the .aspx.cs as well as .aspx.designer.cs files are taken and compiled into the intermediate output folder(obj folder) and then finally moved to the (bin folder)

             You do not really need the Project files (.csproj/.vbproj); User files(.user) to run your web. Neither do you need any of the code behind or designer files as they are compiled into your Bin folder. At the same time you also do not need the obj folder as that is just the intermediate folder VS uses before produces the final output in the Bin folder.

    Only files needed to run this application

    Based on this rationale VS only publishes the files which are required to run your application(which are your .aspx and other similar markup files), your referenced DLLs and your Bin folder.

    All Project Files

    Based on the above discussion it is apparent that your code behind and designer files are part of your project, so are your .user and .csproj/ .vbproj … If you select this option then your entire project with these files is published to remote location.

    All files in the source Project Folder

             By choosing “All files in the source Project Folder” you can take all these files(excluding obj) folder and transfer it to any remote location via HTTP,FTP or simple disk IO to a UNC location.  

    Many a times users chose to exclude files from their projects by choosing the “Exclude from Project” command(see picture below). This command essentially removes the artifact from the project file, although do note that these files are still present in your source project folder. Apart from this many a time users want to add help files, read me files, references docs and other misc items in their project folder while they do not really want to publish these artifact most of the time.

    asps file structureexcludeform

     

     

    View article...

     

  • 相关阅读:
    CSRF攻击与防御
    別惹我
    单系统登录机制SSO
    jdk8- list操作
    mybatis--Mapper 常见报错总结(持续总结)
    死锁排查的小窍门 --使用jdk自带管理工具jstack
    oracle笔记--查询10条之后记录的数据
    zookeeper集群操作【这里只说明简单的操作步骤,zk的相关参数、说明请参考官方文档】
    利用jquery操作隐藏table某一列
    关于python3.X 报"import urllib.request ImportError: No module named request"错误,解决办法
  • 原文地址:https://www.cnblogs.com/qixue/p/1638930.html
Copyright © 2011-2022 走看看