zoukankan      html  css  js  c++  java
  • .csporj 文件部分节点解析

     
    1
    <ProjectExtensions> 2 <VisualStudio> 3 <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> 4 <WebProjectProperties> 5 <UseIIS>False</UseIIS> 6 <AutoAssignPort>True</AutoAssignPort> 7 <DevelopmentServerPort>9550</DevelopmentServerPort> 8 <DevelopmentServerVPath>/</DevelopmentServerVPath> 9 <IISUrl>http://localhost:9550/</IISUrl> 10 <NTLMAuthentication>False</NTLMAuthentication> 11 <UseCustomServer>True</UseCustomServer> 12 <CustomServerUrl>http://192.168.0.206:1001/</CustomServerUrl> 13 <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> 14 </WebProjectProperties> 15 </FlavorProperties> 16 </VisualStudio> 17 </ProjectExtensions>
    1  <UseIISExpress>true</UseIISExpress>
    2     <IISExpressSSLPort />
    3     <IISExpressAnonymousAuthentication />
    4     <IISExpressWindowsAuthentication />
    5     <IISExpressUseClassicPipelineMode />

    .csporj文件中包含以上的两个片段。当然是web应用程序项目中包含,如果是类库项目的话,是不包含的。

    第二部分位于项目文件的上部。

    第一个片段则是位于项目文件的下部。

    这里主要说的是iis的选择。

    问题源自将iisexpress8.0卸载后,部分web项目提示无法正常加载,该项目使用了iisexpress之类,如下图:

    iis分为:iis,iisexpress,和以前所谓的web 开发服务器。

    在vs2013中只有外部主机和本地主机;

    也就是自定义服务器和内置的iis(iisexpress)。

     <UseIIS>False</UseIIS>
     6           <AutoAssignPort>True</AutoAssignPort>
     7           <DevelopmentServerPort>9550</DevelopmentServerPort>
     8           <DevelopmentServerVPath>/</DevelopmentServerVPath>
     9           <IISUrl>http://localhost:9550/</IISUrl>
    10           <NTLMAuthentication>False</NTLMAuthentication>

    以上这个片段值得就是iisexpress的配置。而不是所谓的外部iis或者说是windows的iis。

     <UseCustomServer>True</UseCustomServer>
    12           <CustomServerUrl>http://192.168.0.206:1001/</CustomServerUrl>

    以上这个片段就是描述的外部主机也就是windows的iis的配置。

    这两个片段刚好和图形界面的配置相对应,如下图:

    如果两者都设置为true的情况下,可能采用第一种方式也就是iisexpress。

    待验证。

  • 相关阅读:
    Leetcode 191.位1的个数 By Python
    反向传播的推导
    Leetcode 268.缺失数字 By Python
    Leetcode 326.3的幂 By Python
    Leetcode 28.实现strStr() By Python
    Leetcode 7.反转整数 By Python
    Leetcode 125.验证回文串 By Python
    Leetcode 1.两数之和 By Python
    Hdoj 1008.Elevator 题解
    TZOJ 车辆拥挤相互往里走
  • 原文地址:https://www.cnblogs.com/thxuaimin/p/4237399.html
Copyright © 2011-2022 走看看