VS2010打开VS2013的项目-Web应用程序项目XX已配置为使用IIS

时间:2023-01-20 20:48:10

VS2010直接打开VS2013的解决方案是打不开的,需要做下面修改:

1.修改为:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2013
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1

2.Web项目:

原来    <UseIISExpress>节点的值为true,改为false

    <UseIISExpress>false</UseIISExpress>

用这一段XML替换VS2013的Web项目(<ProjectExtensions>节点下)

<VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>7086</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>