为什么IIS 8.0防爆$使用旧的项目名称p $ PSS后重命名在Visual Studio 2012 [英] Why is IIS 8.0 Express using the old project names after rename in Visual Studio 2012

查看:257
本文介绍了为什么IIS 8.0防爆$使用旧的项目名称p $ PSS后重命名在Visual Studio 2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一些命名混乱我的团队决定重新命名一些项目和命名空间为项目中的所有现有code文件。 (在Visual Studio 2012)

After some naming confusing my team decided to rename some projects and the namespaces for all the existing code files in the project. (In Visual Studio 2012)

我们已经改变了:


  • 的项目名称

  • 大会名称,默认的命名空间,项目属性标题和产品项

  • 的命名空间中每个项目的每个code文件改名

  • 所有使用报表修订后的命名空间

  • 在/ bin目录中清除了旧的.dll文件(用于路由引擎找不到多个控制器)

  • 实际的文件夹本身,需要删除并重新添加项目到解决方案(并重新做给被重命名的项目引用)

这一切之后, IIS 8.0防爆preSS 仍坚持使用旧的项目名称为站点名称(而本地调试)。我该如何解决这个问题?

After all of this, IIS 8.0 Express still insists on using the old project names for the site names (while locally debugging). How can I fix this?

编辑:
真正的问题是这样的:?如何IIS 8.0防爆preSS确定网站名称

下面是一个从(之一)的网站的.csproj文件

Here's a snipped from (one of) the .csproj files for a website

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

...并没有什么站点名称。

...and nothing for site name.

推荐答案

这个问题是不是在项目的。

The problem isn't in the Project at all.

在ApplicationHost.config文件中(IIS .NET链接),一般在

In the applicationhost.config file (iis.net link), typically in

(用户目录)\\我的文档\\ IISEx preSS \\设置\\对ApplicationHost.config

有对站点设置。简单地更改站点的name属性。

There are settings for the a site. Simply change the name attribute of the site.

       <site name="MvcApplication1" id="3">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="(whateverpath)\My Documents\Visual Studio 2012\Projects\MvcApplication1\MvcApplication1" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:57733:localhost" />
            </bindings>
        </site>

这篇关于为什么IIS 8.0防爆$使用旧的项目名称p $ PSS后重命名在Visual Studio 2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆