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。

    待验证。

  • 相关阅读:
    字典或者数组与JSON串之间的转换
    银联支付 支付代码
    iOS 一个新方法:- (void)makeObjectsPerformSelector:(SEL)aSelector;
    iOS 直接使用16进制颜色
    iOS 添加view的分类(更加方便的设置view的位置)
    iOS 中UITableView的深理解
    Swift 中调试状态下打印日志
    手把手教React Native实战开发视频教程【更新到40集啦。。。】
    React Native 开发
    React-Native学习指南
  • 原文地址:https://www.cnblogs.com/thxuaimin/p/4237399.html
Copyright © 2011-2022 走看看